-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
86 lines (74 loc) · 2.66 KB
/
setup.py
File metadata and controls
86 lines (74 loc) · 2.66 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import os
import sys
from setuptools import setup
from setuptools.command.install import install
VERSION = "1.0.1"
_ver = sys.version_info
is_py2 = _ver[0] == 2
is_py3 = _ver[0] == 3
if is_py3:
install_requires = [
"requests>=2.21.0", "python-socketio[client]==4.3.1",
"python-engineio==3.9.0", "chardet", "mock", "pathlib",
"termcolor==1.1.0", "colorama==0.4.3", "pyfiglet", "click==7.1.2",
"click-shell", "pandas", "halo", "curses-menu"
]
else:
install_requires = [
"enum34",
"chardet",
"mock",
]
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = "verify that the git tag matches our version"
def run(self):
tag = os.getenv("CIRCLE_TAG")
if tag != VERSION:
info = "Git tag: {0} does not match the version of this app: {1}".format(
tag, VERSION)
sys.exit(info)
setup(
name="galileo_sdk",
version=VERSION,
license="MIT",
author="Hypernet Labs",
author_email="galileo@hypernetlabs.io",
long_description=
"Galileo is a hub for modeling, simulations, and data analysis that functions as a quick and "
"easy portal to cloud resources. The application streamlines computing infrastructure, "
"saving engineers and researchers weeks of cloud setup time. Team and station features allow "
"teams to collaborate efficiently by sharing projects and results, flexibly controlling "
"permissions, and easily tracking their model version histories.\n The Galileo SDK is an API "
"that allows users to interact with Galileo using a Python script instead of a graphical "
"interface. Use the SDK to automate processes such as scheduling jobs, automatically deploying "
"jobs, accepting jobs, and accepting members.",
url="https://hypernetlabs.io/galileo/",
packages=["galileo_sdk"],
entry_points={
"console_scripts": [
"galileo-cli = galileo_sdk.galileo_cli.cli:main",
"galileo-notify = galileo_sdk.galileo_sdk:notify"
]
},
package_data={
"galileo_sdk": [
"sdk/**",
"business/**/*",
"business/__init__.py",
"config/**/*",
"config/__init__.py",
"data/**/*",
"data/__init__.py",
"galileo_cli/**",
"galileo_cli/**/*",
]
},
python_requires=">=2.7",
install_requires=install_requires,
extras_require={"docs": ["sphinx>=2.2.0", "sphinx-material"]},
tests_require=["pytest-runner", "pytest"],
cmdclass={
"verify": VerifyVersionCommand,
},
)