forked from maxcountryman/flask-bcrypt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
70 lines (58 loc) · 1.97 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
"""
Flask-Bcrypt
------------
Bcrypt hashing for your Flask.
"""
import os
from setuptools import setup
current_dir = os.path.dirname(__file__)
def get_version_line():
module_path = os.path.join(current_dir, 'flask_bcrypt.py')
with open(module_path) as module:
for line in module:
if line.startswith('__version_info__'):
return line
version_line = get_version_line()
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
def get_description():
"""
Read full description from 'README.md'
:return: description
:rtype: str
"""
readme_path = os.path.join(current_dir, 'README.md')
with open(readme_path, 'r', encoding='utf-8') as f:
return f.read()
setup(
name='Bcrypt-Flask',
version=__version__,
url='https://github.com/mahenzon/flask-bcrypt',
license='BSD',
author='Suren Khorenyan',
author_email='surenkhorenyan@gmail.com',
description='Brcrypt hashing for Flask.',
long_description=get_description(),
long_description_content_type='text/markdown',
py_modules=['flask_bcrypt'],
zip_safe=False,
platforms='any',
install_requires=['Flask', 'bcrypt>=3.1.1'],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'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',
'Programming Language :: Python :: 3.9',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
test_suite='test_bcrypt',
)