[Python-modules-commits] [dask] 01/04: Add reproducible-version.patch to help build documentation reproducibly

Diane Trout diane at moszumanska.debian.org
Wed Aug 9 18:36:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

diane pushed a commit to branch master
in repository dask.

commit d0c776abaee14df389b15eac6afeebfac95ecc67
Author: Diane Trout <diane at ghic.org>
Date:   Tue Aug 8 21:50:10 2017 -0700

    Add reproducible-version.patch to help build documentation reproducibly
---
 debian/patches/reproducible-version.patch | 22 ++++++++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/reproducible-version.patch b/debian/patches/reproducible-version.patch
new file mode 100644
index 0000000..62f3886
--- /dev/null
+++ b/debian/patches/reproducible-version.patch
@@ -0,0 +1,22 @@
+Author: Diane Trout <diane at ghic.org>
+Description: Use the Debian version for the software version.
+ I think this is a source of non-determinism
+Forwarded: not-needed
+
+--- a/versioneer.py
++++ b/versioneer.py
+@@ -1402,6 +1402,14 @@
+         # see the discussion in cmdclass.py:get_cmdclass()
+         del sys.modules["versioneer"]
+ 
++    import subprocess
++    debian_version = subprocess.check_output(('dpkg-parsechangelog', '-SVersion'))
++    return {
++        'version': debian_version.decode('ascii').split('-', 1)[0],
++        'dirty': False,
++        'error': None
++    }
++
+     root = get_root()
+     cfg = get_config_from_root(root)
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 99156a8..8000d67 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+reproducible-version.patch
 avoid-duplicate-notes-with-numpydoc.patch
 Use-the-packaged-MathJax.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/dask.git



More information about the Python-modules-commits mailing list