Change Gym Notices to Farama Notifications (#332)

This commit is contained in:
Jet
2023-02-20 16:05:39 +00:00
committed by GitHub
parent b3685f51a2
commit 1a75ce1bf7
2 changed files with 5 additions and 6 deletions

View File

@@ -60,11 +60,10 @@ if sys.platform.startswith("linux"):
os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide"
try:
import gym_notices.notices as notices
from farama_notifications import notifications
if "gymnasium" in notifications and __version__ in notifications["gymnasium"]:
print(notifications["gymnasium"][__version__], file=sys.stderr)
# print version warning if necessary
notice = notices.notices.get(__version__)
if notice:
print(notice, file=sys.stderr)
except Exception: # nosec
pass

View File

@@ -30,7 +30,7 @@ dependencies = [
"cloudpickle >=1.2.0",
"importlib-metadata >=4.8.0; python_version < '3.10'",
"typing-extensions >=4.3.0",
"gymnasium-notices >=0.0.1",
"farama-notifications >=0.0.1",
]
dynamic = ["version"]