Update setup.py

This commit is contained in:
Jet
2022-10-14 11:40:16 +01:00
committed by GitHub
parent 18e6983eca
commit ff2635c8dd

View File

@@ -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}"