mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-31 13:54:31 +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."""
|
"""Gets the pettingzoo version."""
|
||||||
path = "gymnasium/version.py"
|
path = "gymnasium/version.py"
|
||||||
with open(path) as file:
|
with open(path) as file:
|
||||||
lines = file.readlines()
|
full_version = file.read()
|
||||||
assert (
|
assert (
|
||||||
re.match(r'VERSION = "\d\.\d+\.\d+"\n', full_version).group(0) == full_version
|
re.match(r'VERSION = "\d\.\d+\.\d+"\n', full_version).group(0) == full_version
|
||||||
), f"Unexpected version: {full_version}"
|
), f"Unexpected version: {full_version}"
|
||||||
|
Reference in New Issue
Block a user