forked from HumanCompatibleAI/imitation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
100 lines (94 loc) · 2.79 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
from setuptools import find_packages, setup
import src.imitation # pytype: disable=import-error
TESTS_REQUIRE = [
"seals~=0.1.0",
"black",
# remove pin once https://github.com/nedbat/coveragepy/issues/881 fixed
"coverage==4.5.4",
"codecov",
"codespell",
"flake8",
"flake8-blind-except",
"flake8-builtins",
"flake8-debugger",
"flake8-isort",
"pytest",
"pytest-cov",
"pytest-shard",
"pytest-xdist",
"pytype",
]
DOCS_REQUIRE = [
"sphinx",
"sphinxcontrib-napoleon",
]
PARALLEL_REQUIRE = ["ray[debug,tune]~=0.8.5"]
def get_readme() -> str:
"""Retrieve content from README."""
with open("README.md", "r") as f:
return f.read()
setup(
name="imitation",
version=src.imitation.__version__,
description="Implementation of modern IRL and imitation learning algorithms.",
long_description=get_readme(),
long_description_content_type="text/markdown",
author="Center for Human-Compatible AI and Google",
python_requires=">=3.7.0",
packages=find_packages("src"),
package_dir={"": "src"},
package_data={"imitation": ["py.typed", "envs/examples/airl_envs/assets/*.xml"]},
install_requires=[
"awscli",
"cloudpickle>=0.5.5",
"gym[classic_control]",
"matplotlib",
"numpy>=1.15",
"torch>=1.4.0",
"tqdm",
"scikit-learn>=0.21.2",
"stable-baselines3~=0.8.0",
"jax~=0.1.66",
"jaxlib~=0.1.47",
"sacred~=0.8.1",
"tensorboard>=1.14",
],
tests_require=TESTS_REQUIRE,
extras_require={
# recommended packages for development
"dev": [
"autopep8",
"ntfy[slack]",
"ipdb",
"isort~=5.0",
"jupyter",
"pytype",
"codespell",
# for convenience
*TESTS_REQUIRE,
*DOCS_REQUIRE,
],
"test": TESTS_REQUIRE,
"docs": DOCS_REQUIRE,
"parallel": PARALLEL_REQUIRE,
},
entry_points={
"console_scripts": [
("imitation-expert-demos=imitation.scripts.expert_demos" ":main_console"),
"imitation-train=imitation.scripts.train_adversarial:main_console",
],
},
url="https://github.com/HumanCompatibleAI/imitation",
license="MIT",
classifiers=[
# Trove classifiers
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
)