1 Star 0 Fork 0

kenzheng/fiber

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
Jiale Zhi 提交于 2021-02-24 14:52 +08:00 . Pin kubernetes python client version
import os
import re
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
from subprocess import check_call
install_requires = [
"nnpy-bundle",
"psutil",
"docker <= 4.2.2",
"cloudpickle",
"kubernetes == 10.0.1",
"requests",
"click",
]
tests_require = [
"pytest",
"docker <= 4.2.2",
"flake8",
]
extras = {
"test": tests_require,
}
def find_version(*file_paths):
basedir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(basedir, *file_paths)) as fp:
content = fp.read()
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]", content, re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Version string not found.")
def read_long_description(filename="README.md"):
with open(filename) as f:
return f.read().strip()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
author="Jiale Zhi",
author_email="jiale@uber.com",
description="A distributed computing library for modern computer clusters",
include_package_data=True,
install_requires=install_requires,
extras_require=extras,
tests_require=tests_require,
cmdclass={"test": PyTest},
license="Apache 2.0",
long_description=read_long_description(),
long_description_content_type="text/markdown",
name="fiber",
packages=find_packages(),
entry_points={
"console_scripts": ["fiber=fiber.cli:main"],
},
version=find_version("fiber", "__init__.py"),
zip_safe=False,
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: System :: Distributed Computing",
],
url="https://github.com/uber/fiber",
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kenzhengdev/fiber.git
git@gitee.com:kenzhengdev/fiber.git
kenzhengdev
fiber
fiber
master

搜索帮助