From 7cd62ca46cff2b5e82c170598eaf4234962ee06c Mon Sep 17 00:00:00 2001 From: Vishesh Date: Wed, 12 Jun 2024 13:18:38 +0530 Subject: [PATCH] Fix marvin package version while building packages --- tools/marvin/mvn-setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/marvin/mvn-setup.py b/tools/marvin/mvn-setup.py index 61bd2219238a..cabcf0dc6596 100755 --- a/tools/marvin/mvn-setup.py +++ b/tools/marvin/mvn-setup.py @@ -34,6 +34,8 @@ def replaceVersion(fname, version): with open(fname, 'r') as f: content = f.read() needle = '\nVERSION\s*=\s*[\'"][^\'"]*[\'"]' + # Ensure the version is PEP440 compliant + version = version.replace('-', '+', 1) replacement = '\nVERSION = "%s"' % version content = re.sub(needle, replacement, content, 1) with open(fname, 'w') as f: