Skip to content

Commit

Permalink
Update Gymnasium to 1.0.0a1 and remove Atari in favour of ale-py new …
Browse files Browse the repository at this point in the history
…gymnasium implementation
  • Loading branch information
pseudo-rnd-thoughts committed Mar 7, 2024
1 parent cb9595e commit 2be5850
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 843 deletions.
7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def get_version():
extras = {
"gym-v21": ["gym>=0.21.0,<0.26", "pyglet==1.5.11"],
"gym-v26": ["gym>=0.26.2"],
"atari": ["ale-py~=0.8.1"],
# "imageio" should be "gymnasium[mujoco]>=0.26" but there are install conflicts
"dm-control": ["dm-control>=1.0.10", "imageio", "h5py>=3.7.0"],
"dm-control-multi-agent": [
Expand All @@ -55,7 +54,6 @@ def get_version():
extras["testing"] = [
"pytest==7.1.3",
"pillow>=9.3.0",
"autorom[accept-rom-license]~=0.6.0",
]

setup(
Expand All @@ -71,7 +69,7 @@ def get_version():
keywords=["Reinforcement Learning", "game", "RL", "AI"],
python_requires=">=3.8",
packages=find_packages(),
install_requires=["numpy>=1.18.0", "gymnasium>=0.27.0"],
install_requires=["numpy>=1.18.0", "gymnasium==1.0.0a1"],
tests_require=extras["testing"],
extras_require=extras,
classifiers=[
Expand All @@ -83,7 +81,4 @@ def get_version():
"Operating System :: OS Independent",
],
include_package_data=True,
entry_points={
"gymnasium.envs": ["__root__ = shimmy.registration:register_gymnasium_envs"]
},
)
6 changes: 5 additions & 1 deletion shimmy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

from shimmy.dm_lab_compatibility import DmLabCompatibilityV0
from shimmy.openai_gym_compatibility import GymV21CompatibilityV0, GymV26CompatibilityV0
from shimmy.registration import register_gymnasium_envs

# this registers the environments on `import shimmy`
register_gymnasium_envs()


class NotInstallClass:
Expand Down Expand Up @@ -73,7 +77,7 @@ def __call__(self, *args: list[Any], **kwargs: Any):
]


__version__ = "1.3.0"
__version__ = "1.4.0"


try:
Expand Down
Loading

0 comments on commit 2be5850

Please sign in to comment.