[python-stetl] 01/02: Add patch by Chris Lamb to make the build reproducible. (closes: #881217)
Bas Couwenberg
sebastic at debian.org
Thu Nov 9 06:40:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository python-stetl.
commit 98ad592d341e176dfabffb704b23ef4ec2ba457c
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Thu Nov 9 07:27:16 2017 +0100
Add patch by Chris Lamb to make the build reproducible. (closes: #881217)
---
debian/changelog | 7 +++++++
debian/patches/reproducible_build.patch | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 34 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index edb6b69..62c2b20 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-stetl (1.1+ds-2) UNRELEASED; urgency=medium
+
+ * Add patch by Chris Lamb to make the build reproducible.
+ (closes: #881217)
+
+ -- Bas Couwenberg <sebastic at debian.org> Thu, 09 Nov 2017 07:26:49 +0100
+
python-stetl (1.1+ds-1) unstable; urgency=medium
* New upstream release.
diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..521337a
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,26 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-11-08
+Bug-Debian: https://bugs.debian.org/881217
+Forwarded: https://github.com/geopython/stetl/pull/64
+
+--- a/stetl/filters/templatingfilter.py
++++ b/stetl/filters/templatingfilter.py
+@@ -139,7 +139,7 @@ class Jinja2TemplatingFilter(TemplatingF
+ # Applying Decorator pattern with the Config class to provide
+ # read-only config values from the configured properties.
+
+- @Config(ptype=str, default=[os.getcwd()], required=False)
++ @Config(ptype=str, default=None, required=False)
+ def template_search_paths(self):
+ """
+ List of directories where to search for templates, default is current working directory only.
+@@ -207,7 +207,7 @@ class Jinja2TemplatingFilter(TemplatingF
+ raise e
+
+ # Load and Init Template once
+- loader = FileSystemLoader(self.template_search_paths)
++ loader = FileSystemLoader(self.template_search_paths or [os.getcwd()])
+ self.jinja2_env = Environment(loader=loader, extensions=['jinja2.ext.do'], lstrip_blocks=True, trim_blocks=True)
+
+ # Register additional Filters on the template environment by updating the filters dict:
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b2026fe
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+reproducible_build.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-stetl.git
More information about the Pkg-grass-devel
mailing list