Uh oh!
There was an error while loading. Please reload this page.
forked from pallets-eco/flask-security-3.0
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
71 lines (59 loc) · 1.78 KB
/
Copy pathsetup.py
File metadata and controls
71 lines (59 loc) · 1.78 KB
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
"""
Flask-Security
==============
"""
importmultiprocessing# pragma: no flakes
importsys
fromsetuptoolsimportsetup, find_packages
fromsetuptools.command.testimporttestasTestCommand
defget_requirements(suffix=''):
withopen('requirements%s.txt'%suffix) asf:
rv=f.read().splitlines()
returnrv
defget_long_description():
withopen('README.rst') asf:
rv=f.read()
returnrv
classPyTest(TestCommand):
deffinalize_options(self):
TestCommand.finalize_options(self)
self.test_args= [
'-xrs',
'--cov', 'flask_security',
'--cov-report', 'term-missing',
'--pep8',
'--flakes',
'--clearcache'
]
self.test_suite=True
defrun_tests(self):
importpytest
errno=pytest.main(self.test_args)
sys.exit(errno)
setup(
name='Flask-Security',
version='1.7.4',
url='https://github.com/mattupstate/flask-security',
license='MIT',
author='Matt Wright',
author_email='matt@nobien.net',
description='Simple security for Flask apps',
long_description=get_long_description(),
packages=find_packages(),
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=get_requirements(),
tests_require=get_requirements('-dev'),
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)