Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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