-
Notifications
You must be signed in to change notification settings - Fork 42
/
setup.py
88 lines (79 loc) · 2.7 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
#!/usr/bin/env python
import codecs
import os
import re
import setuptools
import glob
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
with codecs.open(os.path.join(here, *parts), 'r') as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
test_requirements = [
"parameterized>=0.7.0"
]
setuptools.setup(
name='matrix-registration',
version=find_version("matrix_registration", "__init__.py"),
description='token based matrix registration app',
author='Jona Abdinghoff (ZerataX)',
author_email='[email protected]',
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/zeratax/matrix-registration",
packages=['matrix_registration'],
package_data={'matrix_registration': ['*.txt','*.json',
'translations/*.yaml',
'templates/*.html',
'static/css/*.css',
'static/fonts/*.woff2',
'static/images/*.jpg',
'static/images/*.png',
'static/images/*.ico']},
python_requires='~=3.7',
install_requires=[
"alembic>=1.8",
"appdirs>=1.4.4",
"Flask>=2.2",
"Flask-SQLAlchemy>=2.5.1",
"flask-cors>=3.0.10",
"flask-httpauth>=4.7.0",
"flask-limiter>=2.6",
"PyYAML>=6.0",
"jsonschema>=4.17",
"requests>=2.28",
"SQLAlchemy>=1.4",
"waitress>=2.1",
"WTForms>=3.0"
],
tests_require=test_requirements,
extras_require={
"postgres": ["psycopg2-binary>=2.8.4"],
"testing": test_requirements
},
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Communications :: Chat",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9"
],
entry_points={
'console_scripts': [
'matrix-registration=matrix_registration.app:cli'
],
},
data_files=[
("config", ["config.sample.yaml"]),
(".", ["alembic.ini"]),
("alembic", ["alembic/env.py"]),
("alembic/versions", glob.glob("alembic/versions/*.py"))
]
)