Skip to content

Commit

Permalink
📦 Drop support for old python/django versions
Browse files Browse the repository at this point in the history
* Dropped Django 3.2 and 4.1 support, these are no longer maintained
* Require Python 3.10+ so that we can use modern typing annotations
  syntax.
  • Loading branch information
sergei-maertens committed May 28, 2024
1 parent 0958e3e commit f2a88f6
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 20 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.9', '3.10', '3.11']
django: ['3.2', '4.1', '4.2']
exclude:
- python: '3.11'
django: '3.2'
python: ['3.10', '3.11', '3.12']
django: ['4.2']

steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Changelog
=========

0.14.0 (2024-??-??)
===================

* Dropped support for Django versions older than 4.2 (LTS).
* Dropped support for Python versions older than 3.10.
* ...

0.13.1 (2024-04-08)
===================

Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include *.rst
include *.md
include LICENSE
include digid_eherkenning/py.typed
recursive-include digid_eherkenning *.html
recursive-include digid_eherkenning *.txt
recursive-include digid_eherkenning *.po
Expand Down
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ django-digid-eherkenning
:Version: 0.13.1
:Source: https://github.com/maykinmedia/django-digid-eherkenning
:Keywords: django, authentication, digid, eherkenning, eidas, dutch, nl, netherlands
:PythonVersion: 3.9+

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

Expand Down
Empty file added digid_eherkenning/py.typed
Empty file.
4 changes: 1 addition & 3 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ Installation
Requirements
------------

* Python 3.7 or newer
* setuptools 30.3.0 or above
* Django 3.2
* See the badges for the supported Python and Django versions
* XML system packages, e.g. for Debian/Ubuntu:

- ``libxml2-dev``
Expand Down
7 changes: 3 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,24 @@ keywords = django, authentication, digid, eherkenning, eidas, dutch, nl, netherl
classifiers =
Development Status :: 4 - Beta
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
Programming Language :: Python :: 3.12
Topic :: Software Development :: Libraries :: Python Modules

[options]
zip_safe = False
include_package_data = True
packages = find:
python_requires = >= 3.10
install_requires =
cryptography >= 40.0.0
django >= 3.2.0
django >= 4.2.0
django-sessionprofile
django-simple-certmanager
django-solo
Expand Down
9 changes: 2 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
[tox]
envlist =
py{39,310}-django{32,41,42}
py311-django{41,42}
py{310,311,312}-django{42}
isort
black
docs
skip_missing_interpreters = true

[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

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

[testenv]
Expand All @@ -26,8 +23,6 @@ extras =
tests
coverage
deps =
django32: Django~=3.2
django41: Django~=4.1
django42: Django~=4.2
install_command =
python -I -m pip install {opts} --no-binary lxml {packages}
Expand Down

0 comments on commit f2a88f6

Please sign in to comment.