From e2a98724ce4386bc3e77e0c042de589a045cceeb Mon Sep 17 00:00:00 2001 From: Maksudul Haque Date: Sat, 7 Sep 2024 13:42:11 +0000 Subject: [PATCH 1/4] Update Python and Django Supported Versions --- .github/workflows/test.yaml | 14 ++------------ setup.cfg | 12 ++++++------ 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8093e60..e68c975 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,18 +13,8 @@ jobs: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] - django-version: ["3.2", "4.0", "4.1"] - - exclude: - - python-version: "3.7" - django-version: "4.0" - - - python-version: "3.7" - django-version: "4.1" - - - python-version: "3.11" - django-version: "3.2" + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + django-version: ["4.2", "5.0", "5.1"] steps: - uses: actions/checkout@v3 diff --git a/setup.cfg b/setup.cfg index f0eeaa6..25b5a60 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,23 +18,23 @@ classifiers = Intended Audience :: Developers License :: OSI Approved :: MIT License Operating System :: OS Independent - Framework :: Django :: 3.2 - Framework :: Django :: 4.0 - Framework :: Django :: 4.1 + Framework :: Django :: 4.2 + Framework :: Django :: 5.0 + Framework :: Django :: 5.1 Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 [options] packages = drf_test_generator include_package_data = True -python_requires = >=3.7 +python_requires = >=3.8 install_requires = - django>=3.2 + django>=42 djangorestframework>=3.12 [options.packages.find] From 3be30346483fa58bec39659b2a199a2a0c435ed9 Mon Sep 17 00:00:00 2001 From: Maksudul Haque Date: Sat, 7 Sep 2024 13:43:20 +0000 Subject: [PATCH 2/4] Fix typo --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 25b5a60..1a18236 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,7 +34,7 @@ packages = drf_test_generator include_package_data = True python_requires = >=3.8 install_requires = - django>=42 + django>=4.2 djangorestframework>=3.12 [options.packages.find] From b696219bc561f570ba35eb813d209e450c328c72 Mon Sep 17 00:00:00 2001 From: Maksudul Haque Date: Sat, 7 Sep 2024 13:46:45 +0000 Subject: [PATCH 3/4] Update Tox --- tox.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index c1bf903..6ba1f89 100644 --- a/tox.ini +++ b/tox.ini @@ -1,14 +1,14 @@ [tox] isolated_build = True -envlist = py{37,38,39,310}-django32,py{38,39,310}-django40,py{38,39,310,311}-django41 +envlist = py{38,39,310,311,312}-django{42,50,51} [testenv] commands = python -m pytest {posargs:tests} deps = -r {toxinidir}/requirements_test.txt - django32: Django >=3.2, <3.3 - django40: Django >=4.0, <4.1 - django41: Django >=4.1, <4.2 + django42: Django >=4.2, <4.3 + django50: Django >=5.0, <5.1 + django51: Django >=5.1, <5.2 setenv = PYTHONDEVMODE=1 From 52b46275b53d8be4c9673957866f29211e1ca65f Mon Sep 17 00:00:00 2001 From: Maksudul Haque Date: Sat, 7 Sep 2024 13:54:07 +0000 Subject: [PATCH 4/4] Exclude unsupported versions --- .github/workflows/test.yaml | 11 +++++++++++ tox.ini | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e68c975..92e0e59 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,6 +16,17 @@ jobs: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] django-version: ["4.2", "5.0", "5.1"] + exclude: + - python-version: "3.8" + django-version: "5.0" + - python-version: "3.9" + django-version: "5.0" + + - python-version: "3.8" + django-version: "5.1" + - python-version: "3.9" + django-version: "5.1" + steps: - uses: actions/checkout@v3 diff --git a/tox.ini b/tox.ini index 6ba1f89..95c8085 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] isolated_build = True -envlist = py{38,39,310,311,312}-django{42,50,51} +envlist = py{38,39}-django42,py{310,311,312}-django{42,50,51} [testenv] commands =