forked from opendilab/DI-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
192 lines (186 loc) · 5.97 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Module setuptools script."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from setuptools import setup, find_packages
from importlib import import_module
here = os.path.abspath(os.path.dirname(__file__))
meta_module = import_module('ding')
meta = meta_module.__dict__
with open('README.md', mode='r', encoding='utf-8') as f:
readme = f.read()
setup(
name=meta['__TITLE__'],
version=meta['__VERSION__'],
description=meta['__DESCRIPTION__'],
long_description=readme,
long_description_content_type='text/markdown',
author=meta['__AUTHOR__'],
author_email=meta['__AUTHOR_EMAIL__'],
url='https://github.com/opendilab/DI-engine',
license='Apache License, Version 2.0',
keywords='Decision AI Engine',
packages=[
# framework
*find_packages(include=('ding', "ding.*")),
# application
*find_packages(include=('dizoo'
'dizoo.*')),
],
package_data={
package_name: ['*.yaml', '*.xml', '*cfg', '*SC2Map']
for package_name in find_packages(include=('ding.*'))
},
python_requires=">=3.7",
install_requires=[
'setuptools<=66.1.1',
'gym==0.25.1', # pypy incompatible; some environmrnt only support gym==0.22.0
'torch>=1.1.0, <=1.12.1', # If encountering pytorch errors, you need to do something like https://github.com/opendilab/DI-engine/discussions/81
'numpy>=1.18.0',
'pandas',
'tensorboardX>=2.2',
'requests>=2.25.1',
'pyyaml',
'easydict==1.9',
'protobuf',
'yapf==0.29.0',
'flask~=1.1.2',
'tqdm',
'lz4',
'scipy',
'cloudpickle',
'tabulate',
'click>=7.0.0',
'URLObject>=2.4.0',
'urllib3>=1.26.5',
'responses~=0.12.1',
'readerwriterlock',
'enum_tools',
'trueskill',
'h5py',
'mpire>=2.3.5',
'pynng',
'redis',
'pettingzoo==1.12.0',
'DI-treetensor>=0.3.0',
'DI-toolkit>=0.0.2',
'hbutils>=0.5.0',
'wandb',
'matplotlib',
'MarkupSafe==2.0.1', # compatibility
'h5py',
'scikit-learn',
'hickle',
],
extras_require={
'test': [
'gym[box2d]>=0.25.0',
'opencv-python', # pypy incompatible
'coverage>=5,<=7.0.1',
'mock>=4.0.3',
'pytest~=7.0.1', # required by gym>=0.25.0
'pytest-cov~=3.0.0',
'pytest-mock~=3.6.1',
'pytest-xdist>=1.34.0',
'pytest-rerunfailures~=10.2',
'pytest-timeout~=2.0.2',
],
'style': [
'yapf==0.29.0',
'flake8<=3.9.2',
'importlib-metadata<5.0.0', # compatibility
],
'fast': [
'numpy-stl',
'numba>=0.53.0',
],
'dist': [
'redis==3.5.3',
'redis-py-cluster==2.1.0',
],
'common_env': [
'ale-py', # >=0.7.5', # atari
'autorom',
'gym[all]>=0.25.0',
'cmake>=3.18.4',
'opencv-python', # pypy incompatible
],
'gfootball_env': [
'gfootball',
'kaggle-environments',
],
'procgen_env': [
'procgen',
],
'bsuite_env': [
'bsuite',
],
'minigrid_env': [
'minigrid',
],
# 'd4rl_env': [
# 'd4rl @ git+https://github.com/rail-berkeley/d4rl@master#egg=d4rl',
# ],
# 'pybulletgym_env': [
# 'pybulletgym @ git+https://github.com/benelot/pybullet-gym@master#egg=pybulletgym',
# ],
# 'gym_hybrid_env': [
# 'gym-hybrid @ git+https://github.com/thomashirtz/gym-hybrid@master#egg=gym-hybrid',
# ],
# 'gobigger_env': [
# 'gobigger @ git+https://github.com/opendilab/GoBigger@main#egg=gobigger',
# ],
# 'gym_soccer_env': [
# 'gym-soccer @ git+https://github.com/LikeJulia/gym-soccer@dev-install-packages#egg=gym-soccer',
# ],
'slimevolleygym_env': [
'slimevolleygym',
],
'smac_env': [
'pysc2',
],
'k8s': [
'kubernetes',
],
'envpool': [
'envpool',
],
# 'dmc2gym': [
# 'dmc2gym @ git+https://github.com/denisyarats/dmc2gym@master#egg=dmc2gym',
# ],
# 'rocket_recycling': [
# 'rocket_recycling @ git+https://github.com/nighood/rocket-recycling@master#egg=rocket_recycling',
# ],
'sokoban': [
'gym-sokoban',
],
'mario': [
'gym-super-mario-bros>=7.3.0',
],
},
entry_points={'console_scripts': ['ding=ding.entry.cli:cli', 'ditask=ding.entry.cli_ditask:cli_ditask']},
classifiers=[
'Development Status :: 5 - Production/Stable',
"Intended Audience :: Science/Research",
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
)