mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 22:11:25 +00:00
Change Gym Notices to Farama Notifications (#332)
This commit is contained in:
@@ -60,11 +60,10 @@ if sys.platform.startswith("linux"):
|
|||||||
os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide"
|
os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide"
|
||||||
|
|
||||||
try:
|
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
|
except Exception: # nosec
|
||||||
pass
|
pass
|
||||||
|
@@ -30,7 +30,7 @@ dependencies = [
|
|||||||
"cloudpickle >=1.2.0",
|
"cloudpickle >=1.2.0",
|
||||||
"importlib-metadata >=4.8.0; python_version < '3.10'",
|
"importlib-metadata >=4.8.0; python_version < '3.10'",
|
||||||
"typing-extensions >=4.3.0",
|
"typing-extensions >=4.3.0",
|
||||||
"gymnasium-notices >=0.0.1",
|
"farama-notifications >=0.0.1",
|
||||||
]
|
]
|
||||||
dynamic = ["version"]
|
dynamic = ["version"]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user