-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathsetup.py
62 lines (54 loc) · 1.8 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
import os.path
from setuptools import find_packages, setup
install_requires = [
"requests>=2.25.0",
"urllib3>=1.26.0",
"python_dateutil>=2.8.2",
"pydantic>=2",
"typing-extensions>=4.7.1",
]
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=find_packages(),
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.8",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
],
)