Felix Lechner pushed to branch master at lintian / lintian


Commits:
c1c05b07 by Felix Lechner at 2022-01-20T09:31:45-08:00
Rename tag looking for X-Python3-Version in conjunction with py3versions in 
autopkgtests. (See: #909239, #942673, #961686)

Gbp-Dch: ignore

- - - - -


4 changed files:

- lib/Lintian/Check/Testsuite.pm
- t/recipes/checks/testsuite/does-not-query-declared-python-versions/eval/hints
- + tags/d/drop-python-version-declaration.tag
- − tags/q/query-declared-python-versions-in-test.tag


Changes:

=====================================
lib/Lintian/Check/Testsuite.pm
=====================================
@@ -317,7 +317,7 @@ sub check_test_file {
               && !$debian_control->source_fields->declares(
                 'X-Python3-Version');
 
-            $self->pointed_hint('query-declared-python-versions-in-test',
+            $self->pointed_hint('drop-python-version-declaration',
                 $pointer,
                 $debian_control->source_fields->value('X-Python3-Version'))
               if $options =~ m{ \s (?: -\w*s | --supported ) }x


=====================================
t/recipes/checks/testsuite/does-not-query-declared-python-versions/eval/hints
=====================================
@@ -1,4 +1,4 @@
-does-not-query-declared-python-versions (source): 
query-declared-python-versions-in-test >= 3.4 [debian/tests/script:13]
-does-not-query-declared-python-versions (source): 
query-declared-python-versions-in-test >= 3.4 [debian/tests/script:12]
-does-not-query-declared-python-versions (source): 
query-declared-python-versions-in-test >= 3.4 [debian/tests/script:11]
-does-not-query-declared-python-versions (source): 
query-declared-python-versions-in-test >= 3.4 [debian/tests/script:10]
+does-not-query-declared-python-versions (source): 
drop-python-version-declaration >= 3.4 [debian/tests/script:13]
+does-not-query-declared-python-versions (source): 
drop-python-version-declaration >= 3.4 [debian/tests/script:12]
+does-not-query-declared-python-versions (source): 
drop-python-version-declaration >= 3.4 [debian/tests/script:11]
+does-not-query-declared-python-versions (source): 
drop-python-version-declaration >= 3.4 [debian/tests/script:10]


=====================================
tags/d/drop-python-version-declaration.tag
=====================================
@@ -0,0 +1,24 @@
+Tag: drop-python-version-declaration
+Severity: warning
+Check: testsuite
+Renamed-From:
+ query-requested-python-versions-in-test
+ query-declared-python-versions-in-test
+Explanation:
+ Your sources request a specific set of Python versions via the control
+ field <code>X-Python3-Version</code> but the named test is ready to work
+ with all installed versions.
+ .
+ You may wish to drop the <code>X-Python3-Version</code> control field
+ unless other tests work only with specific Python versions.
+ .
+ Sources shipping the <code>X-Python3-Version</code> field may not be able
+ to remain in Debian <code>testing</code> when Python version 3.9 is
+ dropped from there.
+ .
+ Lintian infers that the specified test is ready because it queries all
+ <em>supported</em> Python version with the command
+ <code>py3versions --supported</code>.
+See-Also:
+ py3versions(1),
+ Bug#1001677


=====================================
tags/q/query-declared-python-versions-in-test.tag deleted
=====================================
@@ -1,14 +0,0 @@
-Tag: query-declared-python-versions-in-test
-Severity: warning
-Check: testsuite
-Renamed-From:
- query-requested-python-versions-in-test
-Explanation: The specified test queries all <em>supported</em> Python versions
- with the command <code>py3versions --supported</code> but your sources request
- a specific set of versions via the field <code>X-Python3-Version</code>..
- .
- Please query only the requested versions with the command
- <code>py3versions --requested</code>.
-See-Also:
- py3versions(1),
- Bug#1001677



View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/c1c05b07c7b2ad647b39812253944e70fcf9eddd

-- 
View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/c1c05b07c7b2ad647b39812253944e70fcf9eddd
You're receiving this email because of your account on salsa.debian.org.


Reply via email to