Ai
1 Star 0 Fork 0

Alibaba Cloud/pai-python-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
LiangQuan 提交于 2025-03-31 16:27 +08:00 . chore: fix package building (#52)
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"
PACKAGE_NAME = os.getenv("PACKAGE_NAME", "pai")
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=PACKAGE_NAME,
python_requires=">=3.8",
version=version,
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",
],
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aliyun/pai-python-sdk.git
git@gitee.com:aliyun/pai-python-sdk.git
aliyun
pai-python-sdk
pai-python-sdk
master

搜索帮助