Alexandre Mestiashvili pushed to branch master at Debian Python Team / packages / python-multipletau
Commits: 64c4f2f9 by Alexandre Mestiashvili at 2023-12-22T20:26:27+01:00 Include d/patches/reproducible-build.patch, Closes: #1058681 - - - - - f89bf569 by Alexandre Mestiashvili at 2023-12-22T20:29:35+01:00 Update changelog - - - - - 3 changed files: - debian/changelog - + debian/patches/reproducible-build.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +python-multipletau (0.3.3+ds-6) UNRELEASED; urgency=medium + + * Include d/patches/reproducible-build.patch, Closes: #1058681 + + -- Alexandre Mestiashvili <[email protected]> Fri, 22 Dec 2023 20:29:18 +0100 + python-multipletau (0.3.3+ds-5) unstable; urgency=medium * Team upload. ===================================== debian/patches/reproducible-build.patch ===================================== @@ -0,0 +1,23 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2023-12-14 + +--- python-multipletau-0.3.3+ds.orig/multipletau/_version.py ++++ python-multipletau-0.3.3+ds/multipletau/_version.py +@@ -121,7 +121,15 @@ if True: # pragma: no cover + # Get the version from the previously generated `_version_save.py` + longversion = load_version(versionfile) + +- # 3. last resort: date ++ # 3. SOURCE_DATE_EPOCH ++ if longversion == "": ++ longversion = time.strftime( ++ "%Y.%m.%d-%H-%M-%S", ++ time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))) ++ ) ++ print("Using SOURCE_DATE_EPOCH time as version: {}".format(longversion)) ++ ++ # 4. last resort: date + if longversion == "": + print("Could not determine version. Reason:") + print(traceback.format_exc()) ===================================== debian/patches/series ===================================== @@ -1,3 +1,4 @@ examples_location.patch packaged-mathjax.patch python3.12.patch +reproducible-build.patch View it on GitLab: https://salsa.debian.org/python-team/packages/python-multipletau/-/compare/fa618bd2b5ee772c74a5a431673c04b11653998d...f89bf5693e2579e35b7b45461ba60aa8504466c8 -- View it on GitLab: https://salsa.debian.org/python-team/packages/python-multipletau/-/compare/fa618bd2b5ee772c74a5a431673c04b11653998d...f89bf5693e2579e35b7b45461ba60aa8504466c8 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
