-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
125 lines (111 loc) · 2.85 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
117
118
119
120
121
122
123
124
125
import ast
import codecs
import re
from os import path
from setuptools import find_packages, setup
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',
'Jinja2',
'MarkupSafe',
'itsdangerous',
'PeeWee',
'Flask-Login',
'WTForms!=2.3.2',
'Flask-WTF',
'Flask-Babel',
'Bootstrap-Flask',
'sentry-sdk[flask]',
'validators',
'Werkzeug',
'markdown',
'python-dotenv',
'text-unidecode',
'Click',
'keyring',
'keyrings.cryptfile',
'texttable',
'python-magic',
'passlib[argon2]',
'PyICU',
]
test_reqs = [
'pytest',
'pytest-mock',
'pytest-cov',
'pytest-factoryboy',
'pytest-flask',
]
docs_reqs = [
'Sphinx',
]
dev_reqs = [
'ipython',
'ipdb',
'pip',
'setuptools',
'wheel',
'flake8',
'flake8-builtins',
'flake8-bugbear',
'flake8-comprehensions',
'flake8-pytest-style',
'pep8-naming',
'dlint',
'rstcheck',
'rope',
'flask-shell-ipython',
'watchdog',
] + test_reqs + docs_reqs
setup(
name='biuletyn-bip',
version=find_version('src', 'bip', '_version.py'),
author='Jarek Zgoda',
author_email='[email protected]',
description='Polish BIP (Biuletyn Informacji Publicznej) as Flask application',
keywords='bip public information bulletin',
long_description=read('README.rst'),
long_description_content_type='text/x-rst',
license='GPLv3',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
url='https://github.com/zgoda/bip',
project_urls={
'Documentation': 'https://bip.readthedocs.io/',
'Source': 'https://github.com/zgoda/bip',
'Issues': 'https://github.com/zgoda/bip/issues',
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Flask',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: Polish',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Content Management System',
],
install_requires=base_reqs,
extras_require={
'dev': dev_reqs,
'test': test_reqs,
'docs': docs_reqs,
},
entry_points={
'console_scripts': [
'bip=bip.cli:main',
]
},
python_requires='~=3.8',
)