This repository has been archived by the owner on May 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
83 lines (79 loc) · 2.36 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
import os
from os import path
from codecs import open
from setuptools import setup, find_namespace_packages
# get current directory
here = path.abspath(path.dirname(__file__))
# get the long description from the README file
# with open(path.join(here, 'README.md'), encoding='utf-8') as f:
# long_description = f.read()
long_description = (
"GitHub: [https://github.com/iknl/vantage6]"
"(https://github.com/iknl/vantage6)"
)
# Read the API version from disk. This file should be located in the package
# folder, since it's also used to set the pkg.__version__ variable.
version_path = os.path.join(here, 'vantage6', 'server', '_version.py')
version_ns = {
'__file__': version_path
}
with open(version_path) as f:
exec(f.read(), {}, version_ns)
# setup the package
setup(
name='vantage6-server',
version=version_ns['__version__'],
description='Vantage6 server',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/IKNL/vantage6-server',
packages=find_namespace_packages(),
python_requires='>=3.6',
install_requires=[
'appdirs==1.4.3',
'flask==2.0.2',
'Flask-RESTful==0.3.9',
'Flask-Cors==3.0.9',
'Flask-JWT-Extended==3.24.1',
'flask-marshmallow==0.11.0',
'Flask-SocketIO==5.1.1',
'SQLAlchemy==1.3.15',
'Flask-Principal==0.4.0',
'flasgger==0.9.5',
'schema==0.7.1',
'bcrypt==3.1.7',
'questionary==1.5.2',
'marshmallow==2.16.3',
'marshmallow-sqlalchemy==0.15.0',
'ipython==7.16.3',
'requests==2.25.1',
'psutil==5.7.0',
'gevent==20.9.0',
'Flask-Mail==0.9.1',
'requests-oauthlib==1.3.0',
'gevent-websocket==0.10.1',
'eventlet==0.33.0',
'kombu==5.2.2',
f'vantage6 == {version_ns["__version__"]}',
f'vantage6-common == {version_ns["__version__"]}'
],
extras_require={
'dev': [
'termcolor==1.1.0',
'coverage==4.5.4'
]
},
package_data={
'vantage6.server': [
'__build__',
'_data/**/*.yaml',
'server_data/*.yaml',
'resource/swagger/*.yaml'
],
},
entry_points={
'console_scripts': [
'vserver-local=vantage6.server.cli.server:cli_server'
]
}
)