diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3eecdf9..9a184f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -49,7 +61,7 @@ jobs: uses: maykinmedia/setup-django-backend@v1.1 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' diff --git a/README.rst b/README.rst index 66841c5..19f4df7 100644 --- a/README.rst +++ b/README.rst @@ -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: ```` -:PythonVersion: 3.12 +:PythonVersion: 3.10, 3.12 |build-status| |code-quality| |black| |coverage| |docs| |python-versions| |django-versions| |pypi-version| - +Extra payment attributes for Open Forms StUF-ZDS registration backend .. contents:: @@ -21,8 +21,7 @@ Welcome to stuf_zds_payments's documentation! Features ======== -* ... -* ... +* Extra payment attributes for Open Forms StUF-ZDS registration backend Installation ============ @@ -30,7 +29,7 @@ Installation Requirements ------------ -* Python 3.12 or above +* Python 3.10/3.12 or above * Django 4.2 or newer @@ -39,7 +38,7 @@ Install .. code-block:: bash - pip install stuf_zds_payments + pip install open-forms-ext-stuf-zds-payments Usage @@ -67,28 +66,28 @@ directory to the python path (or use ``python -m django ``): # 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/ diff --git a/pyproject.toml b/pyproject.toml index 946614f..3d369e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" ] diff --git a/tox.ini b/tox.ini index 213b655..da95ae7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{312}-django{42} + py{310,312}-django{42} isort black flake8 @@ -9,6 +9,7 @@ skip_missing_interpreters = true [gh-actions] python = + 3.10: py310 3.12: py312 [gh-actions:env]