From 208ed9f4d210b1ab4086c74dbfc59dd79084bd60 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Mon, 12 Aug 2024 20:25:13 -0400 Subject: [PATCH] Drop support for Python < 3.8 and Django < 4.2. --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- setup.py | 8 +++----- tox.ini | 26 +++++++++----------------- 4 files changed, 14 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f955768..9a3b599 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.7 + python-version: 3.8 - name: Install dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 69fb84f..62963db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: fail-fast: false max-parallel: 5 matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v2 diff --git a/setup.py b/setup.py index 2cf03a3..cd86fbd 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ author='Simon Charette', author_email='simon.charette@zapier.com', install_requires=[ - 'Django>=3.2', + 'Django>=4.2', ], packages=find_packages(exclude=['tests', 'tests.*']), license='MIT License', @@ -25,16 +25,14 @@ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', - 'Framework :: Django :: 3.2', - 'Framework :: Django :: 4.0', - 'Framework :: Django :: 4.1', 'Framework :: Django :: 4.2', + 'Framework :: Django :: 5.0', + 'Framework :: Django :: 5.1', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', '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', diff --git a/tox.ini b/tox.ini index d0fc838..cb4ad65 100644 --- a/tox.ini +++ b/tox.ini @@ -6,23 +6,20 @@ envlist = flake8, isort, pypi, - py37-3.2, - py{38,39}-{3.2,4.1,4.2}, - py310-{3.2,4.1,4.2,5.0,main}, - py311-{4.1,4.2,5.0,main}, + py{38,39}-{4.2}, + py310-{4.2,5.0,5.1,main}, + py311-{4.2,5.0,5.1,main}, [gh-actions] python = - 3.7: py37, black, flake8, isort, pypi - 3.8: py38 + 3.8: py38, black, flake8, isort, pypi 3.9: py39 3.10: py310 3.11: py311 [testenv] basepython = - py37: python3.7 - py38: python3.8 + python3.8 py39: python3.9 py310: python3.10 py311: python3.11 @@ -32,37 +29,32 @@ commands = coverage report deps = coverage - 3.2: Django>=3.2,<4 - 4.1: Django>=4.1,<4.2 4.2: Django>=4.2,<5 - 5.0: Django>=5.0a1,<5.1 + 5.0: Django>=5.0,<5.1 + 5.1: Django>=5.1,<5.2 main: https://github.com/django/django/archive/main.tar.gz passenv = GITHUB_* [testenv:flake8] usedevelop = false -basepython = python3.7 -commands = flake8 +commands = flake8 seal tests deps = flake8 [testenv:isort] usedevelop = false -basepython = python3.7 commands = isort --recursive --check-only --diff seal tests deps = isort - Django<4 + Django<=4.2 [testenv:black] usedevelop = false -basepython = python3.7 commands = black --check seal tests deps = black [testenv:pypi] usedevelop = false -basepython = python3.7 commands = python setup.py sdist --format=gztar bdist_wheel twine check dist/*