-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
60 lines (56 loc) · 1.9 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
#!/usr/bin/env python3
"""Install scripts for setuptools."""
from setuptools import find_packages
from setuptools import setup
with open("README.md", "rt", encoding="utf-8") as f:
long_description = f.read()
tf_requirements = [
"tensorflow",
"tensorflow_probability",
"rlds",
# Reverb and launchpad must pinned against specific versions of TF
"dm-reverb",
"dm-launchpad",
]
jax_requirements = [
# Pinned with jax<0.4 as the pinned version of TF/TFP is not compatible
# with jax>=0.4. However, if you use later versions of TFP/TF magi should work fine.
"jax<0.4",
"jaxlib",
"chex",
"optax",
"dm-haiku",
"rlax",
] + tf_requirements
setup(
name="magi",
description="Reinforcement Learning in JAX",
license="Apache License, Version 2.0",
url="https://github.com/ethanluoyc/magi/",
author="Yicheng Luo",
author_email="[email protected]",
keywords="reinforcement-learning machine learning jax ai",
project_urls={
"Source": "https://github.com/ethanluoyc/magi/",
"Tracker": "https://github.com/ethanluoyc/magi/issues",
},
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires=">=3.8, <3.10",
use_scm_version=True,
setup_requires=["setuptools_scm"],
install_requires=["absl-py", "dm-tree", "numpy", "dm-acme", "gym"],
extras_require={"jax": jax_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.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)