Loading debian/changelog +7 −0 Original line number Diff line number Diff line snakemake (5.5.3-2) UNRELEASED; urgency=medium * Apply patch from Chris Lamb to make the build reproducible (Closes: #932116). -- Dylan Aïssi <daissi@debian.org> Tue, 16 Jul 2019 08:13:48 +0200 snakemake (5.5.3-1) unstable; urgency=medium * Team upload. Loading debian/patches/0012-reproducible-build.patch 0 → 100644 +40 −0 Original line number Diff line number Diff line Description: Make the build reproducible Author: Chris Lamb <lamby@debian.org> Last-Update: 2019-07-15 --- snakemake-5.5.3.orig/snakemake/report/__init__.py +++ snakemake-5.5.3/snakemake/report/__init__.py @@ -98,10 +98,12 @@ def data_uri_from_file(file, defaultenc= def report(text, path, - stylesheet=os.path.join(os.path.dirname(__file__), "report.css"), + stylesheet=None, defaultenc="utf8", template=None, metadata=None, **files): + if stylesheet is None: + stylesheet = os.path.join(os.path.dirname(__file__), "report.css") outmime, _ = mimetypes.guess_type(path) if outmime != "text/html": raise ValueError("Path to report output has to be an HTML file.") --- snakemake-5.5.3.orig/snakemake/utils.py +++ snakemake-5.5.3/snakemake/utils.py @@ -189,7 +189,7 @@ def makedirs(dirnames): def report(text, path, - stylesheet=os.path.join(os.path.dirname(__file__), "report.css"), + stylesheet=None, defaultenc="utf8", template=None, metadata=None, **files): @@ -233,6 +233,8 @@ def report(text, path, metadata (str): E.g. an optional author name or email address. """ + if stylesheet is None: + stylesheet = os.path.join(os.path.dirname(__file__), "report.css") try: import snakemake.report except ImportError: debian/patches/series +1 −0 Original line number Diff line number Diff line Loading @@ -9,3 +9,4 @@ 0009-skip-test-without-google-cloud-sdk.patch # 0010-skip-test-without-rmarkdown.patch 0011-fix-privacy-breach.patch 0012-reproducible-build.patch Loading
debian/changelog +7 −0 Original line number Diff line number Diff line snakemake (5.5.3-2) UNRELEASED; urgency=medium * Apply patch from Chris Lamb to make the build reproducible (Closes: #932116). -- Dylan Aïssi <daissi@debian.org> Tue, 16 Jul 2019 08:13:48 +0200 snakemake (5.5.3-1) unstable; urgency=medium * Team upload. Loading
debian/patches/0012-reproducible-build.patch 0 → 100644 +40 −0 Original line number Diff line number Diff line Description: Make the build reproducible Author: Chris Lamb <lamby@debian.org> Last-Update: 2019-07-15 --- snakemake-5.5.3.orig/snakemake/report/__init__.py +++ snakemake-5.5.3/snakemake/report/__init__.py @@ -98,10 +98,12 @@ def data_uri_from_file(file, defaultenc= def report(text, path, - stylesheet=os.path.join(os.path.dirname(__file__), "report.css"), + stylesheet=None, defaultenc="utf8", template=None, metadata=None, **files): + if stylesheet is None: + stylesheet = os.path.join(os.path.dirname(__file__), "report.css") outmime, _ = mimetypes.guess_type(path) if outmime != "text/html": raise ValueError("Path to report output has to be an HTML file.") --- snakemake-5.5.3.orig/snakemake/utils.py +++ snakemake-5.5.3/snakemake/utils.py @@ -189,7 +189,7 @@ def makedirs(dirnames): def report(text, path, - stylesheet=os.path.join(os.path.dirname(__file__), "report.css"), + stylesheet=None, defaultenc="utf8", template=None, metadata=None, **files): @@ -233,6 +233,8 @@ def report(text, path, metadata (str): E.g. an optional author name or email address. """ + if stylesheet is None: + stylesheet = os.path.join(os.path.dirname(__file__), "report.css") try: import snakemake.report except ImportError:
debian/patches/series +1 −0 Original line number Diff line number Diff line Loading @@ -9,3 +9,4 @@ 0009-skip-test-without-google-cloud-sdk.patch # 0010-skip-test-without-rmarkdown.patch 0011-fix-privacy-breach.patch 0012-reproducible-build.patch