forked from instadeepai/Mava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
129 lines (114 loc) · 3.89 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
# python3
# Copyright 2021 InstaDeep Ltd. All rights reserved.
#
# 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.
"""Install script for setuptools."""
import datetime
import sys
from importlib import util as import_util
from setuptools import find_packages, setup
spec = import_util.spec_from_file_location("_metadata", "mava/_metadata.py")
_metadata = import_util.module_from_spec(spec) # type: ignore
spec.loader.exec_module(_metadata) # type: ignore
reverb_requirements = [
"dm-reverb~=0.6.0",
"jax",
"jaxlib",
]
tf_requirements = [
"tensorflow>=2.6.0,<2.8.0",
"tensorflow_probability~=0.14.1",
"dm-sonnet",
"trfl",
]
pettingzoo_requirements = [
"pettingzoo~=1.13.1",
"multi_agent_ale_py",
"supersuit==3.3.1",
"pygame",
"pysc2",
]
launchpad_requirements = ["dm-launchpad~=0.3.2"]
testing_formatting_requirements = [
"pytest==6.2.4",
"pre-commit",
"mypy==0.910",
"pytest-xdist",
"flake8==3.9.1",
"black==21.4b1",
"pytest-cov",
"interrogate",
"pydocstyle",
"types-six",
]
record_episode_requirements = ["array2gif"]
flatland_requirements = ["flatland-rl==2.2.2"]
open_spiel_requirements = ["open_spiel"]
long_description = """Mava is a library for building multi-agent reinforcement
learning (MARL) systems. Mava builds off of Acme and in a similar way strives
to expose simple, efficient, and readable components, as well as examples that
serve both as reference implementations of popular algorithms and as strong
baselines, while still providing enough flexibility to do novel research.
For more information see
[github repository](https://github.com/instadeepai/mava)."""
# Get the version from metadata.
version = _metadata.__version__ # type: ignore
# If we're releasing a nightly/dev version append to the version string.
if "--nightly" in sys.argv:
sys.argv.remove("--nightly")
version += ".dev" + datetime.datetime.now().strftime("%Y%m%d")
setup(
name="id-mava",
version=version,
description="A Python library for Multi-Agent Reinforcement Learning.",
long_description=long_description,
long_description_content_type="text/markdown",
author="InstaDeep Ltd",
license="Apache License, Version 2.0",
keywords="multi-agent reinforcement-learning python machine learning",
packages=find_packages(),
install_requires=[
"dm-acme~=0.2.2",
"absl-py",
"dm_env",
"dm-tree",
"numpy",
"pillow",
"matplotlib",
"dataclasses",
"Box2D",
"gym",
],
extras_require={
"tf": tf_requirements,
"pz": pettingzoo_requirements,
"flatland": flatland_requirements,
"open_spiel": open_spiel_requirements,
"reverb": reverb_requirements,
"launchpad": launchpad_requirements,
"testing_formatting": testing_formatting_requirements,
"record_episode": record_episode_requirements,
},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)