We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c3ac72 commit 85fdf34Copy full SHA for 85fdf34
1 file changed
.github/fetch_version.py
@@ -1,10 +1,12 @@
1
# Note: Action must be run in Python 3.11 or later
2
import tomllib
3
4
+
5
def fetch_version():
6
with open("pyproject.toml", "rb") as f:
7
pyproject = tomllib.load(f)
8
return pyproject["project"]["version"]
9
10
11
if __name__ == "__main__":
- print(fetch_version())
12
+ print(fetch_version())
0 commit comments