summarylogtreecommitdiffstats
path: root/amaranth-versioning.patch
blob: 48caa5cb858b18ca8dc97e152d975adaa0fb14ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/pdm_build.py	2023-12-13 01:29:50.000000000 -0800
+++ a/pdm_build.py	2023-12-15 23:07:54.051989617 -0800
@@ -1,13 +1,13 @@
-from pdm.backend._vendor.packaging.version import Version
+#from pdm.backend._vendor.packaging.version import Version
 
 
 # This is done in a PDM build hook without specifying `dynamic = [..., "version"]` to put all
 # of the static metadata into pyproject.toml. Tools other than PDM will not execute this script
 # and will use the generic version of the documentation URL (which redirects to /latest).
 def pdm_build_initialize(context):
-    version = Version(context.config.metadata["version"])
-    if version.is_prerelease:
-        url_version = "latest"
-    else:
-        url_version = f"v{version}"
+    #version = Version(context.config.metadata["version"])
+    #if version.is_prerelease:
+    #    url_version = "latest"
+    #else:
+    url_version = f"v0.4.0"
     context.config.metadata["urls"]["Documentation"] += url_version