forked from PufferAI/PufferLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·205 lines (192 loc) · 5.21 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
193
194
195
196
197
198
199
200
201
202
203
204
205
from setuptools import find_packages, setup
from Cython.Build import cythonize
from itertools import chain
VERSION = '0.6.1'
# Default Gym/Gymnasium/PettingZoo versions
# Gym:
# - 0.26 still has deprecation warnings and is the last version of the package
# - 0.25 adds a breaking API change to reset, step, and render_modes
# - 0.24 is broken
# - 0.22-0.23 triggers deprecation warnings by calling its own functions
# - 0.21 is the most stable version
# - <= 0.20 is missing dict methods for gym.spaces.Dict
# - 0.18-0.21 require setuptools<=65.5.0
GYMNASIUM_VERSION = '0.29.1'
GYM_VERSION = '0.21'
PETTINGZOO_VERSION = '1.24.1'
SHIMMY = 'shimmy[gym-v21]'
docs = [
'sphinx==5.0.0',
'sphinx-rtd-theme==0.5.1',
'sphinxcontrib-youtube==1.0.1',
'sphinx-rtd-theme==0.5.1',
'sphinx-design==0.4.1',
'furo==2023.3.27',
]
# These are the environments that PufferLib has made
# compatible with the latest version of Gym/Gymnasium/PettingZoo
# They are included in PufferTank as a default heavy install
# We force updated versions of Gym/Gymnasium/PettingZoo here to
# ensure that users do not have issues with conflicting versions
# when switching to incompatible environments
compatible_environments = {
'atari': [
'gymnasium[atari,accept-rom-license]',
'stable_baselines3==2.1.0',
],
'box2d': [
'swig==4.1.1',
'gymnasium[box2d]',
],
'bsuite': [
'bsuite==0.3.5',
],
'butterfly': [
'pettingzoo[butterfly]',
],
'classic_control': [
],
'crafter': [
'crafter==1.8.2',
],
'dm_control': [
'dm_control==1.0.11',
],
'dm_lab': [
'gym_deepmindlab==0.1.2',
'dm_env==1.6',
],
'griddly': [
'imageio==2.23.0',
'griddly==1.4.2',
],
'microrts': [
'ffmpeg==1.4',
'gym_microrts==0.3.2',
],
'minigrid': [
'minigrid==2.3.1',
],
'minihack': [
'minihack==0.1.5',
],
'nethack': [
'nle==0.9.0',
],
'nmmo': [
'nmmo>=2.0',
],
'pokemon_red': [
'einops==0.6.1',
'matplotlib',
'scikit-image==0.21.0',
'pyboy<2.0.0',
'hnswlib==0.7.0',
'mediapy',
'pandas==2.0.2',
],
'procgen': [
'procgen==0.10.7',
],
}
for env, packages in compatible_environments.items():
compatible_environments[env] = [
f'gymnasium=={GYMNASIUM_VERSION}',
f'gym=={GYM_VERSION}',
f'pettingzoo=={PETTINGZOO_VERSION}',
SHIMMY,
*packages,
]
# These environments require specific old versions of
# Gym/Gymnasium/PettingZoo to work.
incompatible_environments = {
'avalon': [
'avalon-rl==1.0.0',
f'gymnasium=={GYMNASIUM_VERSION}',
f'pettingzoo=={PETTINGZOO_VERSION}',
],
'magent': [
'magent==0.2.4',
'pettingzoo==1.19.0',
f'gymnasium=={GYMNASIUM_VERSION}',
f'gym=={GYM_VERSION}',
# The Magent2 package is broken for now
#'magent2==0.3.2',
],
'minerl': [
'gym==0.17.0',
'minerl==0.4.4',
# Compatiblity warning with urllib3 and chardet
'requests==2.31.0',
f'gymnasium=={GYMNASIUM_VERSION}',
f'pettingzoo=={PETTINGZOO_VERSION}',
],
'open_spiel': [
'open_spiel==1.3',
'pettingzoo==1.19.0',
f'gymnasium=={GYMNASIUM_VERSION}',
f'gym=={GYM_VERSION}',
SHIMMY,
],
#'smac': [
# 'git+https://github.com/oxwhirl/smac.git',
#],
#'stable-retro': [
# 'git+https://github.com/Farama-Foundation/stable-retro.git',
#]
}
rllib = [
'ray[all]==2.0.0',
'setproctitle==1.1.10',
'service-identity==21.1.0',
'pydantic==1.9',
]
cleanrl = [
'tensorboard==2.11.2',
'torch',
'wandb==0.13.7',
'psutil==5.9.5',
]
setup(
name="pufferlib",
description="PufferAI Library"
"PufferAI's library of RL tools and utilities",
long_description_content_type="text/markdown",
version=VERSION,
packages=find_packages(),
include_package_data=True,
install_requires=[
'numpy==1.23.3',
'opencv-python==3.4.17.63',
'cython==3.0.0',
],
extras_require={
'docs': docs,
'rllib': rllib,
'cleanrl': cleanrl,
'compatible-environments': compatible_environments,
**compatible_environments,
**incompatible_environments,
},
ext_modules = cythonize("pufferlib/extensions.pyx"),
python_requires=">=3.8",
license="MIT",
author="Joseph Suarez",
author_email="[email protected]",
url="https://github.com/PufferAI/PufferLib",
keywords=["Puffer", "AI", "RL"],
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)
#stable_baselines3
#supersuit==3.3.5
#'git+https://github.com/oxwhirl/smac.git',
#curl -L -o smac.zip https://blzdistsc2-a.akamaihd.net/Linux/SC2.4.10.zip
#unzip -P iagreetotheeula smac.zip
#curl -L -o maps.zip https://github.com/oxwhirl/smac/releases/download/v0.1-beta1/SMAC_Maps.zip
#unzip maps.zip && mv SMAC_Maps/ StarCraftII/Maps/