This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
56 lines (50 loc) · 2.09 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
# @Author : FederalLab
# @Date : 2021-09-25 16:57:29
# @Last Modified by : Chen Dengsheng
# @Last Modified time: 2021-09-25 16:57:29
# Copyright (c) FederalLab. All rights reserved.
"""python setup.py sdist bdist_wheel python -m twine upload dist/*"""
from setuptools import find_packages, setup
def get_version():
version_file = 'openfed/version.py'
with open(version_file, 'r', encoding='utf-8') as f:
exec(compile(f.read(), version_file, 'exec'))
return locals()['__version__']
with open('requirements.txt', 'r', encoding='utf-8') as fh:
install_requires = fh.read()
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
setup(
install_requires=install_requires,
name='openfed',
version=get_version(),
author='FederalLab',
author_email='[email protected]',
description='OpenFed: A PyTorch Library for Federated Learning',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/FederalLab/OpenFed',
download_url='https://github.com/FederalLab/OpenFed/archive/main.zip',
packages=find_packages(),
# https://pypi.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Documentation :: Sphinx',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Image Processing',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Security',
'Topic :: Software Development :: Libraries :: Python Modules',
],
license='MIT License',
keywords='federated learning',
)