This repository has been archived by the owner on Feb 7, 2022. It is now read-only.
/
setup.py
116 lines (100 loc) · 2.38 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import ast
import codecs
import re
from os import path
from setuptools import find_packages, setup
# parts below shamelessly stolen from pypa/pip
here = path.abspath(path.dirname(__file__))
def read(*parts):
with codecs.open(path.join(here, *parts), 'r') as fp:
return fp.read()
_version_re = re.compile(r"__version__\s+=\s+(.*)")
def find_version(*where):
return str(ast.literal_eval(_version_re.search(read(*where)).group(1)))
base_reqs = [
'Flask',
'Flask-Babel',
'Flask-Login',
'Flask-FlatPages',
'Flask-SQLAlchemy',
'Flask-WTF',
'Bootstrap-Flask',
'Flask-Migrate',
'Authlib[client]',
'Markdown',
'validators',
'permission',
'psycopg2-binary',
'Werkzeug',
'itsdangerous',
'RQ',
'hiredis',
'requests',
]
test_reqs = [
'pytest',
'pytest-mock',
'pytest-cov',
'pytest-flask',
'pytest-factoryboy',
'pyfakefs',
'fakeredis',
]
dev_reqs = [
'ipdb',
'flake8',
'flake8-builtins',
'flake8-bugbear',
'flake8-mutable',
'flake8-comprehensions',
'pep8-naming',
'dlint',
'rstcheck',
'rope',
'pip',
'setuptools',
'wheel',
'flask-shell-ipython',
'watchdog',
'python-dotenv',
] + test_reqs
long_description = read('README.md')
setup(
name='brewlog',
version=find_version('src', 'brewlog', '_version.py'),
author='Jarek Zgoda',
author_email='jarek.zgoda@gmail.com',
long_description=long_description,
long_description_content_type='text/markdown',
license='BSD',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
url='http://github.com/zgoda/brewlog',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Flask',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
install_requires=base_reqs,
setup_requires=(
'babel',
),
extras_require={
'prod': ['uwsgi'],
'test': test_reqs,
'dev': dev_reqs,
},
entry_points={
'console_scripts': [
'brewlog=brewlog.cli:main',
],
},
python_requires='~=3.7',
)