forked from hasadna/open-bus-stride-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (39 loc) · 1.17 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
from setuptools import setup, find_packages
from os import path
import time
if path.exists("VERSION.txt"):
# this file can be written by CI tools (e.g. Travis)
with open("VERSION.txt") as version_file:
version = version_file.read().strip().strip("v")
else:
version = str(time.time())
extras_cli = ['click>=7.0']
extras_jupyter = ['jupyterlab', 'ipywidgets']
extras_notebooks = ['pandas>=1.3<1.4']
extras_urbanaccess = ['urbanaccess==0.2.2', 'geopandas==0.10.2']
extras_apiproxy = ['psutil']
setup(
name='open-bus-stride-client',
version=version,
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
include_package_data=True,
install_requires=['requests', 'pytz', 'json-stream==1.3.0'],
extras_require={
'cli': extras_cli,
'notebooks': extras_notebooks,
'urbanaccess': extras_urbanaccess,
'apiproxy': extras_apiproxy,
'all': [
*extras_cli,
*extras_jupyter,
*extras_notebooks,
*extras_urbanaccess,
*extras_apiproxy,
]
},
entry_points={
'console_scripts': [
'stride = stride.cli:main',
]
},
)