|
70 | 70 |
|
71 | 71 | """ # noqa:E501
|
72 | 72 |
|
73 |
| -# Atari Games download is sometimes problematic: |
74 |
| -# https://github.com/Farama-Foundation/AutoROM/issues/39 |
75 |
| -# That's why we define extra packages without it. |
76 |
| -extra_no_roms = [ |
77 |
| - # For render |
78 |
| - "opencv-python", |
79 |
| - "pygame", |
80 |
| - # Tensorboard support |
81 |
| - "tensorboard>=2.9.1", |
82 |
| - # Checking memory taken by replay buffer |
83 |
| - "psutil", |
84 |
| - # For progress bar callback |
85 |
| - "tqdm", |
86 |
| - "rich", |
87 |
| - # For atari games, |
88 |
| - "shimmy[atari]~=1.3.0", |
89 |
| - "pillow", |
90 |
| -] |
91 |
| - |
92 |
| -extra_packages = extra_no_roms + [ # noqa: RUF005 |
93 |
| - # For atari roms, |
94 |
| - "autorom[accept-rom-license]~=0.6.1", |
95 |
| -] |
96 |
| - |
97 | 73 |
|
98 | 74 | setup(
|
99 | 75 | name="stable_baselines3",
|
100 | 76 | packages=[package for package in find_packages() if package.startswith("stable_baselines3")],
|
101 | 77 | package_data={"stable_baselines3": ["py.typed", "version.txt"]},
|
102 | 78 | install_requires=[
|
103 |
| - "gymnasium>=0.28.1,<0.30", |
104 |
| - "numpy>=1.20,<2.0", # PyTorch not compatible https://github.com/pytorch/pytorch/issues/107302 |
105 |
| - "torch>=1.13", |
| 79 | + "gymnasium>=0.29.1,<1.1.0", |
| 80 | + "numpy>=1.20,<3.0", |
| 81 | + "torch>=2.3,<3.0", |
106 | 82 | # For saving models
|
107 | 83 | "cloudpickle",
|
108 | 84 | # For reading logs
|
|
125 | 101 | "black>=24.2.0,<25",
|
126 | 102 | ],
|
127 | 103 | "docs": [
|
128 |
| - "sphinx>=5,<8", |
| 104 | + "sphinx>=5,<9", |
129 | 105 | "sphinx-autobuild",
|
130 | 106 | "sphinx-rtd-theme>=1.3.0",
|
131 | 107 | # For spelling
|
132 | 108 | "sphinxcontrib.spelling",
|
133 | 109 | # Copy button for code snippets
|
134 | 110 | "sphinx_copybutton",
|
135 | 111 | ],
|
136 |
| - "extra": extra_packages, |
137 |
| - "extra_no_roms": extra_no_roms, |
| 112 | + "extra": [ |
| 113 | + # For render |
| 114 | + "opencv-python", |
| 115 | + "pygame", |
| 116 | + # Tensorboard support |
| 117 | + "tensorboard>=2.9.1", |
| 118 | + # Checking memory taken by replay buffer |
| 119 | + "psutil", |
| 120 | + # For progress bar callback |
| 121 | + "tqdm", |
| 122 | + "rich", |
| 123 | + # For atari games, |
| 124 | + "ale-py>=0.9.0", |
| 125 | + "pillow", |
| 126 | + ], |
138 | 127 | },
|
139 | 128 | description="Pytorch version of Stable Baselines, implementations of reinforcement learning algorithms.",
|
140 | 129 | author="Antonin Raffin",
|
|
146 | 135 | long_description=long_description,
|
147 | 136 | long_description_content_type="text/markdown",
|
148 | 137 | version=__version__,
|
149 |
| - python_requires=">=3.8", |
| 138 | + python_requires=">=3.9", |
150 | 139 | # PyPI package information.
|
151 | 140 | project_urls={
|
152 | 141 | "Code": "https://github.com/DLR-RM/stable-baselines3",
|
|
158 | 147 | },
|
159 | 148 | classifiers=[
|
160 | 149 | "Programming Language :: Python :: 3",
|
161 |
| - "Programming Language :: Python :: 3.8", |
162 | 150 | "Programming Language :: Python :: 3.9",
|
163 | 151 | "Programming Language :: Python :: 3.10",
|
164 | 152 | "Programming Language :: Python :: 3.11",
|
| 153 | + "Programming Language :: Python :: 3.12", |
165 | 154 | ],
|
166 | 155 | )
|
167 | 156 |
|
|
0 commit comments