Skip to content

Commit

Permalink
Test against Django 5.0, drop support Django <4.2 (#443)
Browse files Browse the repository at this point in the history
* Test against Django 5.0, drop support Django <4.2

* setuptools
  • Loading branch information
joshblum authored Dec 14, 2023
1 parent d13b4c0 commit e828184
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ __pycache__/
# Distribution / packaging
.Python
env/
venv/
bin/
build/
develop-eggs/
Expand Down
4 changes: 2 additions & 2 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Release notes
=============

The |version| release of |project| supports Python 3.7, 3.8, 3.9, 3.10 and
Django 3.1, 3.2, 4.0, and 4.1.
The |version| release of |project| supports Python 3.8, 3.9, 3.10, 3.11, 3.12
and Django 4.2 and 5.0
61 changes: 29 additions & 32 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class PyTest(TestCommand):

def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
Expand All @@ -17,43 +16,41 @@ def finalize_options(self):
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest

errno = pytest.main(self.test_args)
sys.exit(errno)


setup(
name='django-registration-redux',
version=get_version().replace(' ', '-'),
description='An extensible user-registration application for Django',
long_description=open('README.rst').read(),
author='Andrew Cutler',
author_email='[email protected]',
url='https://github.com/macropin/django-registration',
package_dir={'registration': 'registration'},
packages=find_packages(exclude='test_app'),
tests_require=['pytest-django'],
cmdclass={'test': PyTest},
name="django-registration-redux",
version=get_version().replace(" ", "-"),
description="An extensible user-registration application for Django",
long_description=open("README.rst").read(),
author="Andrew Cutler",
author_email="[email protected]",
url="https://github.com/macropin/django-registration",
package_dir={"registration": "registration"},
packages=find_packages(exclude="test_app"),
tests_require=["pytest-django"],
cmdclass={"test": PyTest},
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD 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',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
],
)
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
flake8
coveralls
isort==4.3.21
setuptools
tox
invoke
docutils
Expand Down
10 changes: 2 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@

[tox]
envlist =
py3{7,8,9}-django31,
py3{7,8,9}-django32,
py3{8,9,10}-django40,
py3{8,9,10,11}-django41,
py3{8,9,10,11}-django42,
py3{10,11,12}-django50,
skip_missing_interpreters=True

[testenv]
commands =
coverage run --source=registration setup.py test
deps =
-rtest-requirements.txt
django31: Django>=3.1,<3.2
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

0 comments on commit e828184

Please sign in to comment.