Skip to content

Commit

Permalink
Drop support for Python < 3.8 and Django < 4.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
charettes committed Aug 13, 2024
1 parent 0e3d6a3 commit fc29067
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,22 @@
author='Simon Charette',
author_email='[email protected]',
install_requires=[
'Django>=3.2',
'Django>=4.2',
],
packages=find_packages(exclude=['tests', 'tests.*']),
license='MIT License',
classifiers=[
'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',
Expand Down
25 changes: 6 additions & 19 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,63 +6,50 @@ 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
py39: python3.9
py310: python3.10
py311: python3.11
usedevelop = true
commands =
{envpython} -R -Wonce {envbindir}/coverage run -a -m django test -v2 --settings=tests.settings {posargs}
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
deps = flake8

[testenv:isort]
usedevelop = false
basepython = python3.7
commands = isort --recursive --check-only --diff seal tests
deps =
isort
Django<4

[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/*
Expand Down

0 comments on commit fc29067

Please sign in to comment.