mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-30 21:34:30 +00:00
Update setup.py
This commit is contained in:
2
setup.py
2
setup.py
@@ -21,7 +21,7 @@ def get_version():
|
||||
"""Gets the pettingzoo version."""
|
||||
path = "gymnasium/version.py"
|
||||
with open(path) as file:
|
||||
lines = file.readlines()
|
||||
full_version = file.read()
|
||||
assert (
|
||||
re.match(r'VERSION = "\d\.\d+\.\d+"\n', full_version).group(0) == full_version
|
||||
), f"Unexpected version: {full_version}"
|
||||
|
Reference in New Issue
Block a user