Skip to content

Commit

Permalink
#refs #92: Adds explicit support for Django 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Rocha committed Jan 5, 2025
1 parent 97e99ee commit 40b4cae
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
python_paths = .
20 changes: 8 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup

from setuptools import find_packages
from setuptools import setup, find_packages

with open('README.rst', 'r', encoding='utf-8') as f:
long_description = f.read()

setup(
name='django-password-reset',
Expand All @@ -17,23 +14,22 @@
url='https://github.com/brutasse/django-password-reset',
license='BSD licence, see LICENSE file',
description='Class-based views for password reset.',
long_description=open('README.rst').read(),
long_description=long_description,
long_description_content_type='text/x-rst',
install_requires=[
'Django>=1.11',
'Django>=4.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Framework :: Django :: 4.0',
'Framework :: Django :: 5.1',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
test_suite='runtests.runtests',
zip_safe=False,
)
26 changes: 15 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
[tox]
qenvlist =
py38-django{30,40},
envlist =
py39-django{30,40},
py310-django{30,40},
docs, lint
py310-django{30,40,50},
docs,
lint

[testenv]
commands = python -Wall setup.py test # or your test command
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
setenv =
DJANGO_SETTINGS_MODULE = password_reset.tests.settings
PYTHONPATH = {toxinidir}
deps =
pytest
pytest-django
django30: Django>=3.0,<4.0
django40: Django>=4.0,<5.0
django50: Django>=5.0,<6.0
commands = pytest

[testenv:docs]
basepython = python3.9
description = Build the documentation using Sphinx
basepython = python3.10
changedir = docs
deps =
Sphinx
Expand All @@ -25,7 +28,8 @@ commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:lint]
basepython = python3.9
description = Run flake8 linter on the codebase
basepython = python3.10
deps =
flake8
commands =
Expand Down

0 comments on commit 40b4cae

Please sign in to comment.