From 16c8972aadbb62af7f5c1f3e541e3d91ee6ee642 Mon Sep 17 00:00:00 2001 From: calebsyring Date: Wed, 27 Mar 2024 10:01:31 -0400 Subject: [PATCH] Allow Django 5.x in setup.py --- .github/workflows/build.yml | 8 +++++++- README.rst | 2 +- requirements.txt | 2 +- setup.py | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13cfe06..f45fcc8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,13 @@ jobs: max-parallel: 4 matrix: python-version: [3.8, 3.9, "3.10", "3.11"] - django-version: [4.0, 4.1, 4.2] + django-version: [4.0, 4.1, 4.2, 5.0] + exclude: + # Django 5 requires python>=3.10 + - python-version: 3.8 + django-version: 5.0 + - python-version: 3.9 + django-version: 5.0 steps: - uses: actions/checkout@v2 diff --git a/README.rst b/README.rst index 7c259da..5553be3 100644 --- a/README.rst +++ b/README.rst @@ -38,7 +38,7 @@ This project aims to keep compatibility with the supported Django releases. As such our versions of python and django are designed to match that cadence as much as possible. -We are currently compatible with Django 4. Python versions 3.8 to 3.10. +We are currently compatible with Django 5. Python versions 3.8 to 3.11. Documentation ------------- diff --git a/requirements.txt b/requirements.txt index e216ccc..589c420 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django>=2.2,<4.3 +Django>=4.0,<6 Sphinx>=1.2.0 phonenumbers>=7.0.2 django-phonenumber-field==6.1.0 diff --git a/setup.py b/setup.py index 2ae71d4..ed16ac2 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ # For the official support, please visit: # https://docs.djangoproject.com/en/4.0/faq/install/#what-python-version-can-i-use-with-django if sys.version_info[1] in [8, 9, 10, 11]: - django_python_version_install = "Django>=4.0,<=5.0" + django_python_version_install = "Django>=4.0,<6" INSTALL_PYTHON_REQUIRES.append(django_python_version_install) setup(