Commit 49f12225 authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

Check for "dot" directories in Python packaging such as ".cache", etc. (Closes: #907870)

parent 6725a70c
Loading
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -845,16 +845,19 @@ Info: Python eggs should not be installed, since the Debian package is
 .
 The egg may contain pre-compiled Python bytecode or shared libraries.

Tag: package-contains-pytest-cache
Tag: package-contains-python-dot-directory
Severity: normal
Certainty: certain
Info: The package contains a file that looks like cruft/cache from the
 Python "pytest" testing tool.
Info: The package contains a file that looks like cruft from the Python
 build process such as "pytest" cached output or similar.
 .
 As they are unlikely to be of utility to end-users these files should not
 be shipped in the final binary package. They could also conflict with
 files from other packages and/or affect the reproducibility of your
 package.
 As such files are unlikely to be of utility to end-users they should
 not be shipped in the final binary package. They could also conflict
 with files from other packages and/or affect the reproducibility of
 your package.
 .
 Please rebuild using a newer version of pybuild/dh-python which will
 automatically remove many of these files.

Tag: package-contains-python-coverage-file
Severity: normal
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
file-name-contains-wildcard-character                ~~ [*?]
package-contains-compiled-glib-schema                ~~ ^usr/share/glib-[^\/]+/schemas/gschemas\.compiled$
package-contains-file-in-etc-skel                    ~~ ^etc/skel/(?!\.(bash(rc|_logout)|m?kshrc|profile)).
package-contains-pytest-cache                        ~~ (^|/)\.pytest_cache/.+
package-contains-python-dot-directory                ~~ ^usr/lib/python[^\/]+/(dist|site)-packages/(|.+/)\.[^\/]+/$
package-contains-python-coverage-file                ~~ (^|/)\.coverage$
package-contains-python-doctree-file                 ~~ \.doctree(\.gz)?$
package-contains-python-hypothesis-example           ~~ /\.hypothesis/examples/[^\)]+/.+
+2 −2
Original line number Diff line number Diff line
@@ -16,8 +16,8 @@ lintian (2.5.100) UNRELEASED; urgency=medium
      test features.
  * data/files/fnames:
    + [CL] Check for ".pytest_cache/foo" files in binary packages.
      (Closes: #907870)
    + [CL] Check for "dot" directories in Python packaging such as
      ".cache", etc; they are usually an error.  (Closes: #907870)
  * data/testsuite/known-restrictions:
    + [CL] Apply patch from Paul Gevers to add hint-testsuite-triggers and
      skip-not-installable to the list of known autopkgtest restrictions.
+0 −1
Original line number Diff line number Diff line
.pytest_cache /usr/share/files-pytest-cache

t/tests/files-pytest-cache/desc

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
Testname: files-pytest-cache
Version: 1.0
Description: Check for Python .pytest_cache files
Test-For:
 package-contains-pytest-cache
Loading