From 61e106052555f8f049bb5a0c981b3dc5899244e1 Mon Sep 17 00:00:00 2001 From: Mark Towers Date: Tue, 18 Jul 2023 13:22:22 +0100 Subject: [PATCH] Update Gymnasium to v0.29.0 (#1610) * Update setup.py to v0.29.0 * Remove invalid test * Loosen version and update changelog --------- Co-authored-by: Antonin Raffin --- docs/misc/changelog.rst | 5 +++-- setup.py | 2 +- stable_baselines3/version.txt | 2 +- tests/test_envs.py | 2 -- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/misc/changelog.rst b/docs/misc/changelog.rst index 38255d0..eaa761d 100644 --- a/docs/misc/changelog.rst +++ b/docs/misc/changelog.rst @@ -4,7 +4,7 @@ Changelog ========== -Release 2.1.0a0 (WIP) +Release 2.1.0a1 (WIP) -------------------------- Breaking Changes: @@ -15,6 +15,7 @@ Breaking Changes: New Features: ^^^^^^^^^^^^^ - Added Python 3.11 support +- Added Gymnasium 0.29 support (@pseudo-rnd-thoughts) `SB3-Contrib`_ ^^^^^^^^^^^^^^ @@ -1396,4 +1397,4 @@ And all the contributors: @Melanol @qgallouedec @francescoluciano @jlp-ue @burakdmb @timothe-chaumont @honglu2875 @anand-bala @hughperkins @sidney-tio @AlexPasqua @dominicgkerr @Akhilez @Rocamonde @tobirohrer @ZikangXiong @DavyMorgan @luizapozzobon @Bonifatius94 @theSquaredError @harveybellini @DavyMorgan @FieteO @jonasreiher @npit @WeberSamuel @troiganto -@lutogniew @lbergmann1 @lukashass @BertrandDecoster +@lutogniew @lbergmann1 @lukashass @BertrandDecoster @pseudo-rnd-thoughts diff --git a/setup.py b/setup.py index 6ddb9b6..deb9f54 100644 --- a/setup.py +++ b/setup.py @@ -100,7 +100,7 @@ setup( packages=[package for package in find_packages() if package.startswith("stable_baselines3")], package_data={"stable_baselines3": ["py.typed", "version.txt"]}, install_requires=[ - "gymnasium==0.28.1", + "gymnasium>=0.28.1,<0.30", "numpy>=1.20", "torch>=1.13", # For saving models diff --git a/stable_baselines3/version.txt b/stable_baselines3/version.txt index ecaf4ee..0e4065c 100644 --- a/stable_baselines3/version.txt +++ b/stable_baselines3/version.txt @@ -1 +1 @@ -2.1.0a0 +2.1.0a1 diff --git a/tests/test_envs.py b/tests/test_envs.py index e6c9738..e82ef57 100644 --- a/tests/test_envs.py +++ b/tests/test_envs.py @@ -156,8 +156,6 @@ def test_non_default_spaces(new_obs_space): spaces.Box(low=-1000, high=1000, shape=(3,), dtype=np.float32), # Too small range spaces.Box(low=-0.1, high=0.1, shape=(2,), dtype=np.float32), - # Inverted boundaries - spaces.Box(low=1, high=-1, shape=(2,), dtype=np.float32), # Same boundaries spaces.Box(low=1, high=1, shape=(2,), dtype=np.float32), # Unbounded action space