加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
jbchen5 提交于 2022-08-25 20:06 . first commit
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import setuptools
import os
def _process_requirements():
packages = open('requirements.txt').read().strip().split('\n')
requires = []
for pkg in packages:
if pkg.startswith('git+ssh'):
return_code = os.system('pip install {}'.format(pkg))
assert return_code == 0, 'error, status_code is: {}, exit!'.format(return_code)
else:
requires.append(pkg)
return requires
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="iflearner",
version="0.1.0",
author="The iFLYTEK Turing Group",
author_email="",
description="Federated learning package",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/iflytek/iflearner",
packages=[
package for package in setuptools.find_packages()
if package.startswith('iflearner')
],
entry_points={
"console_scripts": [
"ifl_server = iflearner.business.homo.aggregate_server:main",
]
},
install_requires=_process_requirements(),
setup_requires=[],
license="Apache License 2.0",
classifiers=[
'Development Status :: 3 - Alpha',
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
],
python_requires='>=3.7',
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化