-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
81 lines (71 loc) · 2.24 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
from __future__ import print_function
import subprocess
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist
# these make sure the js distribution bundle is created and
# up-to-date when creating distribution packages.
cmdclass = {}
def build_js_bundle():
print('Building JS bundle')
subprocess.check_call(['./bin/build_js_bundle.sh'])
class sdist_(sdist):
def run(self):
build_js_bundle()
sdist.run(self)
cmdclass['sdist'] = sdist_
try:
from wheel.bdist_wheel import bdist_wheel
except ImportError:
pass
else:
class build_wheel(bdist_wheel):
def run(self):
build_js_bundle()
bdist_wheel.run(self)
cmdclass['bdist_wheel'] = build_wheel
# read README as the long description
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='orca',
version='1.5.3',
description='A pipeline orchestration tool with Pandas support',
long_description=long_description,
author='UrbanSim Inc.',
author_email='[email protected]',
license='BSD',
url='https://github.com/udst/orca',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'License :: OSI Approved :: BSD License'
],
packages=find_packages(exclude=['*.tests']),
package_data={
'orca': [
'server/static/css/*',
'server/static/js/dist/*',
'server/templates/*']
},
# New versions of PyTables ("tables" on pypi) often fail to install correctly, so we
# are being conservative here and disallowing them until tested
install_requires=[
'pandas >= 0.15.0',
'tables >=3.1, <3.6; python_version <"3.6"',
'tables >=3.1, <3.7; python_version >="3.6"',
'toolz >= 0.8.1'
],
extras_require={
'server': ['flask >= 0.10', 'pygments >= 2.0', 'six >= 1.9.0']
},
entry_points={
'console_scripts': [
'orca-server = orca.server.server:main [server]'
]
},
cmdclass=cmdclass
)