forked from DLR-RM/rl-baselines3-zoo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
79 lines (70 loc) · 2.58 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
import os
import shutil
from setuptools import setup
with open(os.path.join("rl_zoo3", "version.txt")) as file_handler:
__version__ = file_handler.read().strip()
# Copy hyperparams files for packaging
shutil.copytree("hyperparams", os.path.join("rl_zoo3", "hyperparams"))
long_description = """
# RL Baselines3 Zoo: A Training Framework for Stable Baselines3 Reinforcement Learning Agents
See https://github.com/DLR-RM/rl-baselines3-zoo
"""
setup(
name="rl_zoo3",
packages=["rl_zoo3", "rl_zoo3.plots"],
package_data={
"rl_zoo3": [
"py.typed",
"version.txt",
"hyperparams/*.yml",
]
},
entry_points={"console_scripts": ["rl_zoo3=rl_zoo3.cli:main"]},
install_requires=[
"sb3_contrib>=2.3.0a1,<3.0",
"gymnasium~=0.29.1",
"huggingface_sb3>=3.0,<4.0",
"tqdm",
"rich",
"optuna>=3.0",
"pyyaml>=5.1",
"pytablewriter~=1.2",
# TODO: add test dependencies
],
extras_require={
"plots": ["seaborn", "rliable>=1.0.5", "scipy~=1.10"],
},
description="A Training Framework for Stable Baselines3 Reinforcement Learning Agents",
author="Antonin Raffin",
url="https://github.com/DLR-RM/rl-baselines3-zoo",
author_email="[email protected]",
keywords="reinforcement-learning-algorithms reinforcement-learning machine-learning "
"gymnasium openai stable baselines sb3 toolbox python data-science",
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
version=__version__,
python_requires=">=3.8",
# PyPI package information.
project_urls={
"Code": "https://github.com/DLR-RM/rl-baselines3-zoo",
"Documentation": "https://rl-baselines3-zoo.readthedocs.io/en/master/",
"Changelog": "https://github.com/DLR-RM/rl-baselines3-zoo/blob/master/CHANGELOG.md",
"Stable-Baselines3": "https://github.com/DLR-RM/stable-baselines3",
"RL-Zoo": "https://github.com/DLR-RM/rl-baselines3-zoo",
"SBX": "https://github.com/araffin/sbx",
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)
# Remove copied files after packaging
shutil.rmtree(os.path.join("rl_zoo3", "hyperparams"))
# python setup.py sdist
# python setup.py bdist_wheel
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# twine upload dist/*