We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a37e79f commit dee8c56Copy full SHA for dee8c56
1 file changed
setup.py
@@ -1,12 +1,28 @@
1
# Copyright (c) 2022-2024.
2
# ProrokLab (https://www.proroklab.org/)
3
# All rights reserved.
4
+import pathlib
5
6
from setuptools import find_packages, setup
7
8
+
9
+def get_version():
10
+ """Gets the vmas version."""
11
+ path = CWD / "vmas" / "__init__.py"
12
+ content = path.read_text()
13
14
+ for line in content.splitlines():
15
+ if line.startswith("__version__"):
16
+ return line.strip().split()[-1].strip().strip('"')
17
+ raise RuntimeError("bad version data in __init__.py")
18
19
20
+CWD = pathlib.Path(__file__).absolute().parent
21
22
23
setup(
24
name="vmas",
- version="1.4.0",
25
+ version=get_version(),
26
description="Vectorized Multi-Agent Simulator",
27
url="https://github.com/proroklab/VectorizedMultiAgentSimulator",
28
license="GPLv3",
0 commit comments