[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: Warn about packages that ship (non-reproducible) Python Hypothesis examples. (Closes: #886101)



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

lamby pushed a commit to branch master
in repository lintian.

commit 346fca797fef1537a780cea437b27c9c469a56dd
Author: Chris Lamb <lamby@debian.org>
Date:   Tue Jan 2 09:38:16 2018 +0000

    Warn about packages that ship (non-reproducible) Python Hypothesis examples.  (Closes: #886101)
---
 checks/files.desc | 18 ++++++++++++++++++
 data/files/fnames |  1 +
 debian/changelog  |  4 ++++
 3 files changed, 23 insertions(+)

diff --git a/checks/files.desc b/checks/files.desc
index 2c1e83a..c4a16f5 100644
--- a/checks/files.desc
+++ b/checks/files.desc
@@ -1871,3 +1871,21 @@ Info: This package appears to contain a pickled cache of reStructuredText
            dh_auto_clean
            rm -rf debian/doctrees
 Ref: http://sphinx-doc.org/invocation.html#cmdoption-sphinx-build-d
+
+Tag: package-contains-python-hypothesis-example
+Severity: normal
+Certainty: certain
+Info: This package appears to contain the output of running a Python
+ "Hypothesis" testsuite.
+ .
+ These are not useful in the binary package or to end-users. In addition,
+ as they contain random/non-determinstic contents, they can affect the
+ reproducibility of the package.
+ .
+ You can disable generation of these files by, for example:
+ .
+   export HYPOTHESIS_DATABASE_FILE = $(CURDIR)/debian/hypothesis
+ .
+   override_dh_auto_clean:
+           dh_auto_clean
+           rm -rf $(CURDIR)/debian/hypothesis
diff --git a/data/files/fnames b/data/files/fnames
index 6167504..6628d47 100644
--- a/data/files/fnames
+++ b/data/files/fnames
@@ -4,3 +4,4 @@ file-name-contains-wildcard-character   ~~ [*?]
 package-contains-compiled-glib-schema   ~~ (^|/)gschemas\.compiled$
 package-contains-python-coverage-file   ~~ (^|/)\.coverage$
 package-contains-python-doctree-file    ~~ \.doctree$
+package-contains-python-hypothesis-example    ~~ /\.hypothesis/examples/[^\)]+/.+
diff --git a/debian/changelog b/debian/changelog
index fd389b5..10fa7ce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,10 @@ lintian (2.5.68) UNRELEASED; urgency=medium
     + [CL] Don't warn about unknown template type "entropy" when a package
       depends on cdebconf.  (Closes: #677870)
 
+  * data/files/fnames:
+    + [CL] Warn about packages that ship (non-reproducible) Python
+      Hypothesis examples.  (Closes: #886101)
+
  -- Chris Lamb <lamby@debian.org>  Mon, 01 Jan 2018 15:41:06 +0000
 
 lintian (2.5.67) unstable; urgency=medium

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: