-
Notifications
You must be signed in to change notification settings - Fork 292
/
setup.py
91 lines (81 loc) · 3.13 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import sys
from setuptools import setup
__title__ = 'Flask-User'
__description__ = 'Customizable User Authentication & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.'
__version__ = '1.0.2.3'
__url__ = 'https://github.com/lingthio/Flask-User'
__author__ = 'Ling Thio'
__author_email__= '[email protected]'
__maintainer__ = 'Ling Thio'
__license__ = 'MIT'
__copyright__ = '(c) 2013 Ling Thio'
# Load pytest and pytest-runner only when needed:
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
# Read long description from README.rst file
def load_readme():
with open('README.rst') as f:
return f.read()
setup(
name=__title__,
version=__version__,
description=__description__,
long_description=load_readme(),
keywords='Flask User Authorization Account Management Registration Username Email Confirmation Forgot Reset Password Invitation',
url=__url__,
author=__author__,
author_email=__author_email__,
license=__license__,
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Dutch',
'Natural Language :: English',
'Natural Language :: German',
'Natural Language :: Spanish',
'Natural Language :: Finnish',
'Natural Language :: French',
'Natural Language :: Italian',
'Natural Language :: Persian',
'Natural Language :: Polish',
'Natural Language :: Russian',
'Natural Language :: Slovak',
'Natural Language :: Swedish',
'Natural Language :: Turkish',
'Natural Language :: Ukrainian',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Security',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=['flask_user'],
include_package_data=True, # Tells setup to use MANIFEST.in
zip_safe=False, # Do not zip as it will make debugging harder
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', # Python 2.7 and 3.4+
setup_requires=['Flask-Login',] + pytest_runner,
install_requires=[
'bcrypt>=2.0',
'cryptography>=1.6',
'Flask>=0.9',
'Flask-Login>=0.2',
'Flask-Mail>=0.9',
'Flask-SQLAlchemy>=1.0',
'Flask-WTF>=0.9',
'passlib>=1.7',
],
tests_require=['pytest'],
)