-
Notifications
You must be signed in to change notification settings - Fork 30
/
setup.py
executable file
·77 lines (65 loc) · 2.29 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import os
from os.path import dirname, realpath
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from django_password_validators import __version__ as VERSION
class Tox(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
errno = tox.cmdline(args=args)
sys.exit(errno)
__dir__ = realpath(dirname(__file__))
TESTS_REQUIRE = ['tox >= 4.11', 'bump-my-version >= 0.12']
DESCRIPTION = open(
os.path.join(os.path.dirname(__file__), 'README.rst')).read()
setup(
name='django-password-validators',
version=VERSION,
description="Additional libraries for validating passwords in Django.",
long_description=DESCRIPTION,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'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',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Topic :: Security',
], # strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='django password validator',
author='Wojciech Banas',
author_email='[email protected]',
url='https://github.com/fizista/django-password-validators',
license='BSD',
packages=find_packages(exclude=['tests*', ]),
include_package_data=True,
zip_safe=False,
install_requires=[
'django >= 3.0',
],
tests_require=TESTS_REQUIRE,
extras_require={
'test': TESTS_REQUIRE,
},
cmdclass={'test': Tox},
)