-
Notifications
You must be signed in to change notification settings - Fork 30
/
setup.py
59 lines (51 loc) · 1.75 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
import os.path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
install_requires = ["requests>=2.25.0", "urllib3>=1.26.0"]
def read(rel_path):
"""Read lines from given file"""
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
"""Read __version__ from given file"""
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError(f"Unable to find a valid __version__ string in {rel_path}.")
setup(
name="scaleapi",
packages=["scaleapi"],
version=get_version("scaleapi/_version.py"),
description="The official Python client library for Scale AI, "
"the Data Platform for AI",
author="Scale AI",
author_email="[email protected]",
url="https://github.com/scaleapi/scaleapi-python-client",
keywords=[
"scale",
"scaleapi",
"tasks",
"categorization",
"labeling",
"annotation",
],
install_requires=install_requires,
python_requires=">=3.6",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
],
)