2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-18 16:06:30 +08:00

PEP440 compliant version numbers

This commit is contained in:
Sebastien Bourdeauducq 2023-04-30 16:55:49 +08:00
parent 8409a6bb94
commit 3ff0be6540
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import os
def get_version():
return os.getenv("VERSIONEER_OVERRIDE", default="8.0.beta")
return os.getenv("VERSIONEER_OVERRIDE", default="8.0+unknown.beta")

View File

@ -21,7 +21,7 @@
artiqVersionMajor = 8;
artiqVersionMinor = self.sourceInfo.revCount or 0;
artiqVersionId = self.sourceInfo.shortRev or "unknown";
artiqVersion = (builtins.toString artiqVersionMajor) + "." + (builtins.toString artiqVersionMinor) + "." + artiqVersionId + ".beta";
artiqVersion = (builtins.toString artiqVersionMajor) + "." + (builtins.toString artiqVersionMinor) + "+" + artiqVersionId + ".beta";
artiqRev = self.sourceInfo.rev or "unknown";
rustManifest = pkgs.fetchurl {

View File

@ -11,7 +11,7 @@ def get_rev():
"""
def get_version():
return os.getenv("VERSIONEER_OVERRIDE", default="8.0.beta")
return os.getenv("VERSIONEER_OVERRIDE", default="8.0+unknown.beta")
def get_rev():
return os.getenv("VERSIONEER_REV", default="unknown")