changeset 52973:ef4192dec3d3

version: document the current choice for the local scheme The current choice is the default so nothing is changing there, but we document why we cannot use something else.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 19 Feb 2025 00:26:24 +0100
parents 40c5e29f817a
children ea9846b8e539
files pyproject.toml
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyproject.toml	Wed Feb 19 00:25:17 2025 +0100
+++ b/pyproject.toml	Wed Feb 19 00:26:24 2025 +0100
@@ -128,3 +128,12 @@
 # - post1: for the "default" branch
 # - post2: for any other branch
 version_scheme = "no-guess-dev"
+
+# The "node-and-timestamp" option seems better but we cannot use it as it make
+# `pip install` freaks out with the following warning resulting in an error in
+# the end::
+#
+#   WARNING: Built wheel for mercurial is invalid: Wheel has unexpected file name: expected 'x.y.z.post1.devXXX+hdeadbeef.d20250218231130', got 'x.y.z.post1.devXXX+hdeadbeef.d20250218231133'
+#   Failed to build mercurial
+#   ERROR: Failed to build installable wheels for some pyproject.toml based projects (mercurial)
+local_scheme = "node-and-date"