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

[lintian] 01/01: Raise the severity of the "dependency-on-python-version-marked-for-end-of-life" and "python-foo-but-no-python3-foo" Python 2.x deprecation tags to regular warnings. (Closes: #883581)



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

lamby pushed a commit to branch master
in repository lintian.

commit 1298147cf9e57c54139302027fd6cc459341f409
Author: Chris Lamb <lamby@debian.org>
Date:   Tue Dec 5 13:27:20 2017 +0000

    Raise the severity of the "dependency-on-python-version-marked-for-end-of-life" and "python-foo-but-no-python3-foo" Python 2.x deprecation tags to regular warnings. (Closes: #883581)
---
 checks/python.desc                     |  4 ++--
 debian/changelog                       |  5 +++++
 t/tests/application-not-library/tags   |  2 +-
 t/tests/files-python-general/tags      |  4 ++--
 t/tests/files-python-modules/tags      |  2 +-
 t/tests/python-python2-apps/desc       |  1 -
 t/tests/python-python2-apps/tags       | 10 +++++-----
 t/tests/python-python2-no-python3/tags |  2 +-
 t/tests/scripts-interpreters/tags      |  2 +-
 9 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/checks/python.desc b/checks/python.desc
index e007a9a..70a01b1 100644
--- a/checks/python.desc
+++ b/checks/python.desc
@@ -19,7 +19,7 @@ Info: This package appears to be the initial packaging of a new upstream
  if it is a split of an existing Debian package.
 
 Tag: python-foo-but-no-python3-foo
-Severity: wishlist
+Severity: normal
 Certainty: certain
 Info: This package appears to generate a Python 2 module without a
  corresponding Python 3 version.
@@ -53,7 +53,7 @@ Info: This package alternatively Build-Depends on the Python 2 or Python 3
  <tt>python3-sphinx</tt>.
 
 Tag: dependency-on-python-version-marked-for-end-of-life
-Severity: pedantic
+Severity: normal
 Certainty: certain
 Ref: https://wiki.debian.org/Python/Python3Port, https://www.python.org/dev/peps/pep-0373/
 Info: The package specifies a dependency on Python 2.x which is due for
diff --git a/debian/changelog b/debian/changelog
index 3d7a50e..a52c855 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,11 @@ lintian (2.5.61) UNRELEASED; urgency=medium
     + [CL] Warn if a "Team upload" (ie. that string is present in the
       changelog) but the uploader is among the Maintainer/Uploaders.
       (Closes: #882954)
+  * checks/python.desc:
+    + [CL] Raise the severity of the
+      "dependency-on-python-version-marked-for-end-of-life" and
+      "python-foo-but-no-python3-foo" Python 2.x deprecation tags to
+      regular warnings.  (Closes: #883581)
   * checks/source-copyright.{desc,pm}:
     + [CL] Warn when files specified in Files-Excluded exist in the source
       tree.  (Closes: #871454)
diff --git a/t/tests/application-not-library/tags b/t/tests/application-not-library/tags
index c331a26..3ba8078 100644
--- a/t/tests/application-not-library/tags
+++ b/t/tests/application-not-library/tags
@@ -1,5 +1,5 @@
 E: libapp-something-perl: libapp-perl-package-name usr/bin/libapp-something-perl
-I: application-not-library source: python-foo-but-no-python3-foo python-something
+W: application-not-library source: python-foo-but-no-python3-foo python-something
 X: libapp-something-perl: application-in-library-section perl usr/bin/libapp-something-perl
 X: libsomething-else-perl: application-in-library-section perl usr/bin/libsomething-else-perl
 X: libsomething-else-perl: library-package-name-for-application usr/bin/libsomething-else-perl
diff --git a/t/tests/files-python-general/tags b/t/tests/files-python-general/tags
index e9fe2d5..460213b 100644
--- a/t/tests/files-python-general/tags
+++ b/t/tests/files-python-general/tags
@@ -3,8 +3,8 @@ E: python-kinterbasdb: package-installs-python-bytecode usr/share/python-kinterb
 E: python-kinterbasdb: package-installs-python-egg usr/share/python-kinterbasdb/python.egg
 E: python-kinterbasdb: package-installs-python-pycache-dir usr/share/python-kinterbasdb/__pycache__/
 I: files-python-general source: debian-control-has-obsolete-dbg-package python-kinterbasdb-dbg
-I: files-python-general source: python-foo-but-no-python3-foo python-kinterbasdb
-I: files-python-general source: python-foo-but-no-python3-foo python-kinterbasdb-dbg
 W: files-python-general source: package-uses-deprecated-debhelper-compat-version 7
+W: files-python-general source: python-foo-but-no-python3-foo python-kinterbasdb
+W: files-python-general source: python-foo-but-no-python3-foo python-kinterbasdb-dbg
 W: python-kinterbasdb-dbg: python-debug-in-wrong-location usr/lib/debug/usr/lib/pyshared/python2.7/python-module.so usr/lib/debug/usr/lib/pymodules/python2.7/python-module.so
 W: python-kinterbasdb: file-should-not-be-compressed usr/share/doc/python-kinterbasdb/docs/objects.inv.gz
diff --git a/t/tests/files-python-modules/tags b/t/tests/files-python-modules/tags
index 8e0c721..9e7ec4a 100644
--- a/t/tests/files-python-modules/tags
+++ b/t/tests/files-python-modules/tags
@@ -1,4 +1,4 @@
-I: files-python-modules source: python-foo-but-no-python3-foo python-foo
+W: files-python-modules source: python-foo-but-no-python3-foo python-foo
 W: python-foo: python-module-in-wrong-location usr/lib/python2.5/dist-packages/python-foo usr/lib/python2.5/site-packages/python-foo
 W: python-foo: python-module-in-wrong-location usr/lib/python2.6/site-packages/python-foo usr/lib/python2.6/dist-packages/python-foo
 W: python-foo: python-module-in-wrong-location usr/lib/python2.7/site-packages/python-foo usr/lib/python2.7/dist-packages/python-foo
diff --git a/t/tests/python-python2-apps/desc b/t/tests/python-python2-apps/desc
index ffac0ba..5e7d18b 100644
--- a/t/tests/python-python2-apps/desc
+++ b/t/tests/python-python2-apps/desc
@@ -1,6 +1,5 @@
 Testname: python-python2-apps
 Version: 1.0
 Description: Check packages that Depend/Suggest etc. on Python 2.x
-Options: -I -E --pedantic
 Test-For:
  dependency-on-python-version-marked-for-end-of-life
diff --git a/t/tests/python-python2-apps/tags b/t/tests/python-python2-apps/tags
index 81ed339..d00494d 100644
--- a/t/tests/python-python2-apps/tags
+++ b/t/tests/python-python2-apps/tags
@@ -1,5 +1,5 @@
-P: pkg-depends: dependency-on-python-version-marked-for-end-of-life (Depends: python)
-P: pkg-pre-depends: dependency-on-python-version-marked-for-end-of-life (Pre-Depends: python2.7)
-P: pkg-recommends: dependency-on-python-version-marked-for-end-of-life (Recommends: python-dev)
-P: pkg-suggests: dependency-on-python-version-marked-for-end-of-life (Suggests: python)
-P: pkg-suggests: dependency-on-python-version-marked-for-end-of-life (Suggests: python2.7)
+W: pkg-depends: dependency-on-python-version-marked-for-end-of-life (Depends: python)
+W: pkg-pre-depends: dependency-on-python-version-marked-for-end-of-life (Pre-Depends: python2.7)
+W: pkg-recommends: dependency-on-python-version-marked-for-end-of-life (Recommends: python-dev)
+W: pkg-suggests: dependency-on-python-version-marked-for-end-of-life (Suggests: python)
+W: pkg-suggests: dependency-on-python-version-marked-for-end-of-life (Suggests: python2.7)
diff --git a/t/tests/python-python2-no-python3/tags b/t/tests/python-python2-no-python3/tags
index c78012e..9706c6e 100644
--- a/t/tests/python-python2-no-python3/tags
+++ b/t/tests/python-python2-no-python3/tags
@@ -1 +1 @@
-I: python-python2-no-python3 source: python-foo-but-no-python3-foo python-python-python2-no-python3
+W: python-python2-no-python3 source: python-foo-but-no-python3-foo python-python-python2-no-python3
diff --git a/t/tests/scripts-interpreters/tags b/t/tests/scripts-interpreters/tags
index 9050434..1bdb263 100644
--- a/t/tests/scripts-interpreters/tags
+++ b/t/tests/scripts-interpreters/tags
@@ -10,11 +10,11 @@ I: scripts-interpreters: example-script-uses-bin-env usr/share/doc/scripts-inter
 I: scripts-interpreters: example-script-without-interpreter usr/share/doc/scripts-interpreters/examples/no-interpreter
 I: scripts-interpreters: example-wrong-path-for-interpreter usr/share/doc/scripts-interpreters/examples/not-absolute (#!perl != /usr/bin/perl)
 I: scripts-interpreters: example-wrong-path-for-interpreter usr/share/doc/scripts-interpreters/examples/wrong-perl-path (#!/bin/perl != /usr/bin/perl)
-P: scripts-interpreters: dependency-on-python-version-marked-for-end-of-life (Depends: python2.7)
 P: scripts-interpreters: example-interpreter-in-usr-local usr/share/doc/scripts-interpreters/examples/usr-local #!/usr/local/bin/special-perl
 P: scripts-interpreters: example-shell-script-fails-syntax-check usr/share/doc/scripts-interpreters/examples/syntax
 P: scripts-interpreters: example-unusual-interpreter usr/share/doc/scripts-interpreters/examples/unusual #!/usr/bin/lintian
 W: scripts-interpreters: csh-considered-harmful usr/bin/csh-shell
+W: scripts-interpreters: dependency-on-python-version-marked-for-end-of-life (Depends: python2.7)
 W: scripts-interpreters: interpreter-not-absolute usr/bin/not-absolute #!perl
 W: scripts-interpreters: script-uses-bin-env usr/bin/bin-env
 W: scripts-interpreters: unusual-interpreter usr/bin/unusual #!/usr/bin/lintian

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


Reply to: