forked from aliyun/pai-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
48 lines (38 loc) · 1.4 KB
/
setup.py
File metadata and controls
48 lines (38 loc) · 1.4 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
from __future__ import absolute_import
import os
from setuptools import find_packages, setup
pkg_root = os.path.dirname(os.path.abspath(__file__))
REQUIREMENTS_FILE = "requirements/requirements.txt"
version_data = {}
with open(os.path.join(pkg_root, "pai/version.py")) as fp:
exec(fp.read(), version_data)
version = version_data["VERSION"]
def read_requirements():
with open(os.path.join(pkg_root, REQUIREMENTS_FILE), "r") as f:
return [line.strip() for line in f.readlines() if line.strip()]
long_description = None
if os.path.exists("README.md"):
with open("README.md") as f:
long_description = f.read()
setup(
name="alipai",
python_requires=">=3.6",
version=version,
setup_requires=["setuptools_scm"],
description="Alibaba Cloud PAI Python SDK",
long_description=long_description,
long_description_content_type="text/markdown",
include_package_data=True,
url="https://www.aliyun.com/product/bigdata/product/learn",
packages=find_packages(include=["pai", "pai.*"]),
install_requires=read_requirements(),
author="Alibaba PAI team",
keywords="ML Alibaba Cloud PAI Training Inference Pipeline",
license="Apache License 2.0",
classifier=[
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Development Status :: 4 - Beta",
],
)