Skip to content

Commit

Permalink
📦 Closes #35 -- confirm support for Django 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Jun 20, 2023
1 parent 85fdbc6 commit ed57385
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ on:

jobs:
tests:
name: Run the test suite (Python ${{ matrix.python }}, Django ${{ matrix.django }})
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.9', '3.10']
django: ['3.2', '4.1']

name: Run the test suite (Python ${{ matrix.python }}, Django ${{ matrix.django }})
python: ['3.9', '3.10', '3.11']
django: ['3.2', '4.1', '4.2']
exclude:
- python: '3.11'
django: '3.2'

steps:
- uses: actions/checkout@v3
Expand All @@ -32,13 +34,10 @@ jobs:
sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl gettext
- name: Install dependencies
run: pip install tox tox-gh-actions codecov
run: pip install tox tox-gh-actions

- name: Run tests
run: |
export TOXENV=py${PYTHON_VERSION/./}-django${DJANGO/./}
tox
codecov -e TOXENV,DJANGO --file reports/coverage-${TOXENV}.xml
run: tox
env:
PYTHON_VERSION: ${{ matrix.python }}
DJANGO: ${{ matrix.django }}
Expand All @@ -65,7 +64,7 @@ jobs:
python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
7 changes: 3 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,22 @@ classifiers =
Framework :: Django
Framework :: Django :: 3.2
Framework :: Django :: 4.1
Framework :: Django :: 4.2
Intended Audience :: Developers
Operating System :: Unix
Operating System :: MacOS
Operating System :: Microsoft :: Windows
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Software Development :: Libraries :: Python Modules

[options]
zip_safe = False
include_package_data = True
packages = find:
install_requires =
django ~= 3.2.0
django >= 3.2.0
django-sessionprofile
django-simple-certmanager
django-solo
Expand Down Expand Up @@ -106,6 +108,3 @@ exclude=migrations,static,media
[flake8]
max-line-length=88
exclude=env,.tox,doc

[zest.releaser]
create-wheel = yes
17 changes: 12 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
[tox]
envlist =
py{39,310}-django{32,41}
py{39,310}-django{32,41,42}
py311-django{41,42}
isort
black
docs
skip_missing_interpreters = true

[travis:env]
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311

[gh-actions:env]
DJANGO =
3.2: django32
4.1: django41
4.2: django42

[testenv]
setenv =
Expand All @@ -20,17 +28,16 @@ extras =
deps =
django32: Django~=3.2
django41: Django~=4.1
git+https://github.com/maykinmedia/python3-saml.git@9f1ffa86fdfe68ccbcf063613c6e6cbb5447c360#egg=python3_saml
django42: Django~=4.2
commands =
py.test tests \
--junitxml=reports/junit.xml \
--cov --cov-report xml:reports/coverage-{envname}.xml \
{posargs}

[testenv:isort]
extras = tests
skipsdist = True
commands = isort --check-only --diff digid_eherkenning tests setup.py
commands = isort --check-only --diff .

[testenv:black]
extras = tests
Expand Down

0 comments on commit ed57385

Please sign in to comment.