Skip to content

Commit

Permalink
Removed Python 3.7 support since it is now end-of-life, and is causin…
Browse files Browse the repository at this point in the history
…g tests to fail.
  • Loading branch information
dicknetherlands authored and tim-schilling committed Dec 5, 2023
1 parent fc19260 commit dc304b6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 53 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
django-version: [ "3.2", "4.0", "4.1", "4.2"]
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
django-version: [ "3.2", "4.0", "4.1", "4.2", "5.0"]
drf-version: [ "3.11", "3.12", "3.13" ]
exclude:
# Python 3.7 is incompatible with Django v4+
- django-version: 4.0
python-version: 3.7
- django-version: 4.1
python-version: 3.7
- django-version: 4.2
python-version: 3.7
# Python 3.8 is incompatible with Django v5+
- django-version: 5.0
python-version: 3.8
# Python 3.9 is incompatible with Django v5+
- django-version: 5.0
python-version: 3.9
# Python 3.11 is incompatible with Django <v4.1
- django-version: 3.2
python-version: 3.11
Expand Down
42 changes: 2 additions & 40 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ classifiers = [
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
Expand All @@ -37,9 +36,8 @@ classifiers = [
]

[tool.poetry.dependencies]
python = '^3.7'
python = '^3.8'
django = [
{ version = '^3', python = '<=3.7' },
{ version = '^3 || ^4', python = '>=3.8 <3.10' },
{ version = '^4 || ^5', python = '>=3.10' },
]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def test_nonexisting_user(self):
from django_auth_adfs.config import django_settings
settings = deepcopy(django_settings)
settings.AUTH_ADFS["CREATE_NEW_USERS"] = False
with patch("django_auth_adfs.config.django_settings", settings),\
with patch("django_auth_adfs.config.django_settings", settings), \
patch("django_auth_adfs.backend.settings", Settings()):
backend = AdfsAuthCodeBackend()
self.assertRaises(PermissionDenied, backend.authenticate, self.request, authorization_code='testcode')

0 comments on commit dc304b6

Please sign in to comment.