This repository was archived by the owner on Apr 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (55 loc) · 1.36 KB
/
setup.py
File metadata and controls
69 lines (55 loc) · 1.36 KB
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
"""
roro
----
The client interface to the rorodata platform.
Install
~~~~~~~
It can be installed using pip.
..code:: bash
$ pip install roro
Links
~~~~~
* `Documentation <https://rorodata.com/docs/>`_
* `Github <https://github.com/rorodata/roro-client>`_
"""
from setuptools import setup, find_packages
import os.path
import sys
import re
PY2 = (sys.version_info.major == 2)
def get_version():
"""Returns the package version taken from version.py.
"""
root = os.path.dirname(__file__)
version_path = os.path.join(root, "roro/__init__.py")
text = open(version_path).read()
rx = re.compile("^__version__ = '(.*)'", re.M)
m = rx.search(text)
version = m.group(1)
return version
install_requires = [
'firefly-python>=0.1.9',
'click>=6.7',
'tabulate>=0.7.7',
'PyYAML>=3.12',
'joblib>=0.11',
]
if PY2:
install_requires.append('pathlib>=1.0.1')
install_requires.append('backports.tempfile')
__version__ = get_version()
setup(
name='roro',
version=__version__,
author='rorodata',
author_email='rorodata.team@gmail.com',
description='The client interface to the rorodata platform',
long_description=__doc__,
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
entry_points='''
[console_scripts]
roro = roro.cli:cli
''',
)