forked from sdelements/django-security
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (48 loc) · 1.75 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
# Copyright (c) 2011, SD Elements. See LICENSE.txt for details.
import os
import sys
import subprocess
from distutils.core import Command
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as f:
readme = f.read()
class Test(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, 'testing/manage.py', 'test'])
raise SystemExit(errno)
setup(name="django-security",
description='A collection of tools to help secure a Django project.',
long_description=readme,
long_description_content_type='text/markdown',
maintainer="SD Elements",
maintainer_email="[email protected]",
version="0.12.0",
packages=["security", "security.south_migrations",
"security.migrations", "security.auth_throttling"],
url='https://github.com/sdelements/django-security',
classifiers=[
'Framework :: Django',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Environment :: Web Environment',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Security',
],
install_requires=[
'django>=1.11',
'ua_parser>=0.7.1',
'python-dateutil==2.8.0',
],
cmdclass={'test': Test})