-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
60 lines (56 loc) · 2 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
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',
)