We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c41ec81 commit 8c52d23Copy full SHA for 8c52d23
2 files changed
lagrange/version.py
@@ -1 +1,3 @@
1
-__version__ = '0.0.2'
+# auto generate, do not modify
2
+
3
+__version__ = "dev"
pdm_build.py
@@ -1,6 +1,6 @@
"""
PDM Build Script
-auto bump version
+auto bump version to lagrange/version.py
4
2024/3/18
5
6
@@ -32,12 +32,4 @@ def pdm_build_initialize(context: Context):
32
with open("lagrange/version.py", "w") as f:
33
if ver is None:
34
ver = "0.0.0"
35
- f.write(f"__version__ = '{ver}-{rev}'\n")
36
-
37
38
-def pdm_build_finalize(context: Context, _files) -> None:
39
- ver = context.config.metadata.get("version")
40
- with open("lagrange/version.py", "w") as f:
41
- if ver is None:
42
- ver = "0.0.0"
43
- f.write(f"__version__ = '{ver}'")
+ f.write(f"__version__ = '{ver}{'-' if rev else ''}{rev}'\n")
0 commit comments