diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index f57de7e..73ea61e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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 =0.800)", "pytest", "pytest-asyncio"] - [[package]] name = "asgiref" version = "3.7.2" @@ -270,26 +253,6 @@ ssh = ["bcrypt (>=3.1.5)"] test = ["pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"] test-randomorder = ["pytest-randomly"] -[[package]] -name = "django" -version = "3.2.23" -description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design." -optional = false -python-versions = ">=3.6" -files = [ - {file = "Django-3.2.23-py3-none-any.whl", hash = "sha256:d48608d5f62f2c1e260986835db089fa3b79d6f58510881d316b8d88345ae6e1"}, - {file = "Django-3.2.23.tar.gz", hash = "sha256:82968f3640e29ef4a773af2c28448f5f7a08d001c6ac05b32d02aeee6509508b"}, -] - -[package.dependencies] -asgiref = ">=3.3.2,<4" -pytz = "*" -sqlparse = ">=0.2.2" - -[package.extras] -argon2 = ["argon2-cffi (>=19.1.0)"] -bcrypt = ["bcrypt"] - [[package]] name = "django" version = "4.2.8" @@ -460,7 +423,6 @@ files = [ [package.dependencies] requests = ">=2.0,<3.0" -typing-extensions = {version = "*", markers = "python_version < \"3.8\""} urllib3 = ">=1.25.10" [package.extras] @@ -522,5 +484,5 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] [metadata] lock-version = "2.0" -python-versions = "^3.7" -content-hash = "6752c55730ad93055a08f2627ea21a5fd0418b17cc39f1f6567f9a0642177c74" +python-versions = "^3.8" +content-hash = "63a75fb1d7c73785571c378050b6ff89ab1808c7a533c52fa1b6a07ea931063e" diff --git a/pyproject.toml b/pyproject.toml index 2b6b99d..6804e93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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', @@ -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' }, ] diff --git a/tests/test_authentication.py b/tests/test_authentication.py index 9843441..3fd3714 100644 --- a/tests/test_authentication.py +++ b/tests/test_authentication.py @@ -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')