forked from DLR-RM/rl-baselines3-zoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (61 loc) · 2.1 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
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>=1.8.0a2",
"huggingface_sb3>=2.2.1, <3.*",
"tqdm",
"rich",
"optuna",
"pyyaml>=5.1",
"pytablewriter~=0.64",
# TODO: add test dependencies
],
extras_require={
"plots": ["seaborn", "rliable>=1.0.5", "scipy~=1.7.3"],
},
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 "
"gym 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.7",
# PyPI package information.
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)
# 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/*