forked from PufferAI/PufferLib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
136 lines (124 loc) · 3.26 KB
/
Copy pathsetup.py
File metadata and controls
136 lines (124 loc) · 3.26 KB
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
from pdb import set_trace as T
from setuptools import find_packages, setup
from itertools import chain
docs = [
'sphinx-rtd-theme==0.5.1',
'sphinxcontrib-youtube==1.0.1',
]
all_environments = {
'atari': [
'gym[atari,accept-rom-license]==0.23.0',
'stable_baselines3==1.2.0',
],
# Not ready: Requires Gym 0.25+
#'avalon': [
# 'avalon-rl==1.0.0',
#],
'box2d': [
'swig==4.1.1', #unspecified box2d dep
'gym[box2d]',
],
'butterfly': [
'pettingzoo[butterfly]',
],
'crafter': [
'crafter==1.8.0',
],
'dm_control': [
'dm_control==1.0.11',
'gym_dmc==0.2.5',
'gym==0.21.0',
],
'dm_lab': [
'gym_deepmindlab==0.1.2',
'dm_env==1.6',
],
'griddly': [
'imageio==2.23.0',
'griddly==1.4.2',
],
'magent': [
'magent==0.2.4',
],
'microrts': [
'ffmpeg==1.4',
'gym_microrts==0.3.2',
],
'minerl': [
'gym==0.19.0',
'minerl==0.4.4',
],
'nethack': [
'nle==0.9.0',
],
#'smac': [
# 'git+https://github.com/oxwhirl/smac.git',
#],
}
compatible_environments = [
*all_environments['atari'],
*all_environments['box2d'],
*all_environments['butterfly'],
*all_environments['crafter'],
*all_environments['dm_lab'],
*all_environments['magent'],
*all_environments['microrts'],
*all_environments['nethack'],
]
rllib = [
'ray[all]==2.0.0',
'setproctitle==1.1.10',
'service-identity==21.1.0',
]
cleanrl = [
'tensorboard==2.11.2',
'torch',
'wandb==0.13.7',
'psutil==5.9.5',
]
flat_environments = list(set(chain.from_iterable(all_environments.values())))
extra_all = docs + compatible_environments + rllib
setup(
name="pufferlib",
description="PufferAI Library"
"PufferAI's library of RL tools and utilities",
long_description_content_type="text/markdown",
version=open('pufferlib/version.py').read().split()[-1].strip("'"),
packages=find_packages(),
include_package_data=True,
install_requires=[
'gym==0.23',
'numpy==1.23.3',
'opencv-python==3.4.17.63',
'openskill==4.0.0',
'pettingzoo==1.19.0',
],
extras_require={
'docs': docs,
'rllib': rllib,
'cleanrl': cleanrl,
'environments': compatible_environments,
'all_compatible': docs + cleanrl + rllib + compatible_environments,
**all_environments,
},
python_requires=">=3.8",
license="MIT",
author="Joseph Suarez",
author_email="jsuarez@mit.edu",
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/