We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ea6e0 commit 7739f80Copy full SHA for 7739f80
bittensor_cli/version.py
@@ -2,13 +2,6 @@
2
import re
3
4
5
-def get_toml_version():
6
- toml_file = pathlib.Path(__file__).parent.parent / "pyproject.toml"
7
- with open(toml_file, "r") as f:
8
- tf = toml.load(f)
9
- return tf["project"]["version"]
10
-
11
12
def version_as_int(version):
13
_core_version = re.match(r"^\d+\.\d+\.\d+", version).group(0)
14
_version_split = _core_version.split(".")
@@ -26,7 +19,3 @@ def version_as_int(version):
26
19
27
20
__version__ = importlib.metadata.version("bittensor-cli")
28
21
__version_as_int__ = version_as_int(__version__)
29
30
31
-if __name__ == "__main__":
32
- print(get_toml_version())
0 commit comments