From 1cd0a9caa8112855f3282640685024008ccc2062 Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Thu, 8 Aug 2024 12:00:36 +0200 Subject: [PATCH] :wrench: Support python3.10 OF 2.7.x still uses python3.10 --- .github/workflows/ci.yml | 14 +++++++++++++- README.rst | 2 +- pyproject.toml | 3 ++- tox.ini | 3 ++- 4 files changed, 18 insertions(+), 4 deletions(-) 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..1d9fdd2 100644 --- a/README.rst +++ b/README.rst @@ -6,7 +6,7 @@ Welcome to stuf_zds_payments's documentation! :Version: 0.1.0 :Source: https://github.com/maykinmedia/stuf_zds_payments :Keywords: ```` -:PythonVersion: 3.12 +:PythonVersion: 3.10 |build-status| |code-quality| |black| |coverage| |docs| 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]