-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
75 lines (68 loc) · 2.06 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
"""Install Reinforcement Learning via Supervised Learning."""
import setuptools
import src.rvs # pytype: disable=import-error
TESTS_REQUIRE = [
"black",
"coverage",
"codecov",
"codespell",
"darglint",
"flake8",
"flake8-blind-except",
"flake8-builtins",
"flake8-commas",
"flake8-debugger",
"flake8-docstrings",
"flake8-isort",
"isort",
"pytest",
"pytest-cov",
"pytest-xdist",
"pytype",
]
def get_readme():
"""Fetch README from file."""
with open("README.md", "r") as f:
return f.read()
setuptools.setup(
name="rvs",
version=src.rvs.__version__,
description="Offline RL via Supervised Learning",
long_description=get_readme(),
long_description_content_type="text/markdown",
# gcsl's room_world/room_env.py line 18 uses an import statement that is deprecated
# and won't work in Python 3.9
# from __future__ import annotations needs Python >=3.7 for postponed evaluation of
# annotations
python_requires=">=3.7.0,<3.9", # if you change this, also update project.toml
packages=setuptools.find_packages("src"),
package_dir={"": "src"},
install_requires=[
"configargparse",
"d4rl @ git+https://github.com/rail-berkeley/d4rl.git@master#egg=d4rl",
"gcsl @ git+https://github.com/scottemmons/gcsl.git@master#egg=gcsl",
"gym",
"matplotlib",
"numpy",
"pandas",
"pytorch-lightning",
"seaborn",
"stable-baselines3<=1.2.0", # we use ActorCriticPolicy's _get_latent function
"torch<=1.7.1", # gcsl's rlutil breaks with torch==1.8.1
"tqdm",
"wandb",
],
tests_require=TESTS_REQUIRE,
extras_require={
"test": TESTS_REQUIRE,
},
url="https://github.com/scottemmons/rvs",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)