Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

🔧 Support python3.10 #7

Merged
merged 2 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ jobs:
tests:
name: Run the Django test suite
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12', '3.10']
ref:
- master
- stable/2.7.x
exclude:
- python-version: '3.12'
ref: stable/2.7.x
- python-version: '3.10'
ref: master
services:
postgres:
image: postgres:14
Expand All @@ -39,6 +50,7 @@ jobs:
with:
repository: open-formulieren/open-forms
path: open-forms
ref: ${{ matrix.ref }}

- name: Checkout StUF-ZDS payments extension
uses: actions/checkout@v4
Expand All @@ -49,7 +61,7 @@ jobs:
uses: maykinmedia/[email protected]
with:
apt-packages: 'libxml2 libxmlsec1 libxmlsec1-openssl gettext postgresql-client gdal-bin'
python-version: '3.12'
python-version: ${{ matrix.python-version }}
optimize-postgres: 'yes'
pg-service: 'postgres'
setup-node: 'yes'
Expand Down
35 changes: 17 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@


Welcome to stuf_zds_payments's documentation!
Welcome to open-forms-ext-stuf-zds-payments's documentation!
=================================================

:Version: 0.1.0
:Source: https://github.com/maykinmedia/stuf_zds_payments
:Source: https://github.com/open-formulieren/open-forms-ext-stuf-zds-payments
:Keywords: ``<keywords>``
:PythonVersion: 3.12
:PythonVersion: 3.10, 3.12

|build-status| |code-quality| |black| |coverage| |docs|

|python-versions| |django-versions| |pypi-version|

<One liner describing the project>
Extra payment attributes for Open Forms StUF-ZDS registration backend

.. contents::

Expand All @@ -21,16 +21,15 @@ Welcome to stuf_zds_payments's documentation!
Features
========

* ...
* ...
* Extra payment attributes for Open Forms StUF-ZDS registration backend

Installation
============

Requirements
------------

* Python 3.12 or above
* Python 3.10/3.12 or above
* Django 4.2 or newer


Expand All @@ -39,7 +38,7 @@ Install

.. code-block:: bash

pip install stuf_zds_payments
pip install open-forms-ext-stuf-zds-payments


Usage
Expand Down Expand Up @@ -67,28 +66,28 @@ directory to the python path (or use ``python -m django <command>``):
# django-admin makemessages -l nl


.. |build-status| image:: https://github.com/maykinmedia/stuf_zds_payments/workflows/Run%20CI/badge.svg
.. |build-status| image:: https://github.com/open-formulieren/open-forms-ext-stuf-zds-payments/workflows/Run%20CI/badge.svg
:alt: Build status
:target: https://github.com/maykinmedia/stuf_zds_payments/actions?query=workflow%3A%22Run+CI%22
:target: https://github.com/open-formulieren/open-forms-ext-stuf-zds-payments/actions?query=workflow%3A%22Run+CI%22

.. |code-quality| image:: https://github.com/maykinmedia/stuf_zds_payments/workflows/Code%20quality%20checks/badge.svg
.. |code-quality| image:: https://github.com/open-formulieren/open-forms-ext-stuf-zds-payments/workflows/Code%20quality%20checks/badge.svg
:alt: Code quality checks
:target: https://github.com/maykinmedia/stuf_zds_payments/actions?query=workflow%3A%22Code+quality+checks%22
:target: https://github.com/open-formulieren/open-forms-ext-stuf-zds-payments/actions?query=workflow%3A%22Code+quality+checks%22

.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black

.. |coverage| image:: https://codecov.io/gh/maykinmedia/stuf_zds_payments/branch/main/graph/badge.svg
:target: https://codecov.io/gh/maykinmedia/stuf_zds_payments
.. |coverage| image:: https://codecov.io/gh/open-formulieren/open-forms-ext-stuf-zds-payments/branch/main/graph/badge.svg
:target: https://codecov.io/gh/open-formulieren/open-forms-ext-stuf-zds-payments
:alt: Coverage status

.. |docs| image:: https://readthedocs.org/projects/stuf_zds_payments/badge/?version=latest
:target: https://stuf_zds_payments.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. |python-versions| image:: https://img.shields.io/pypi/pyversions/stuf_zds_payments.svg
.. |python-versions| image:: https://img.shields.io/pypi/pyversions/open-forms-ext-stuf-zds-payments.svg

.. |django-versions| image:: https://img.shields.io/pypi/djversions/stuf_zds_payments.svg
.. |django-versions| image:: https://img.shields.io/pypi/djversions/open-forms-ext-stuf-zds-payments.svg

.. |pypi-version| image:: https://img.shields.io/pypi/v/stuf_zds_payments.svg
:target: https://pypi.org/project/stuf_zds_payments/
.. |pypi-version| image:: https://img.shields.io/pypi/v/open-forms-ext-stuf-zds-payments.svg
:target: https://pypi.org/project/open-forms-ext-stuf-zds-payments/
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ classifiers = [
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.12"
requires-python = ">=3.10"
dependencies = [
"django>=4.2"
]
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{312}-django{42}
py{310,312}-django{42}
isort
black
flake8
Expand All @@ -9,6 +9,7 @@ skip_missing_interpreters = true

[gh-actions]
python =
3.10: py310
3.12: py312

[gh-actions:env]
Expand Down
Loading