Russ Allbery pushed to branch master at lintian / lintian


Commits:
8509a3f2 by Louis-Philippe Véronneau at 2022-12-23T18:04:42+00:00
Fix false-positive for missing-prerequisite-for-pyproject-backend when the 
backend is specified as a Build-Depends-Indep. Closes: #1025164

- - - - -


4 changed files:

- lib/Lintian/Check/Languages/Python.pm
- 
t/recipes/checks/languages/python/python-wrong-poetry/build-spec/debian/control.in
- t/recipes/checks/languages/python/python-wrong-poetry/build-spec/fill-values
- t/recipes/checks/languages/python/python-wrong-poetry/eval/hints


Changes:

=====================================
lib/Lintian/Check/Languages/Python.pm
=====================================
@@ -254,7 +254,7 @@ sub source {
                     $self->pointed_hint(
                         'missing-prerequisite-for-pyproject-backend',
                         $pointer, $backend,"(does not satisfy $prerequisites)")
-                      if !$build_depends->satisfies($prerequisites);
+                      if !$build_all->satisfies($prerequisites);
                 }
             }
 


=====================================
t/recipes/checks/languages/python/python-wrong-poetry/build-spec/debian/control.in
=====================================
@@ -3,7 +3,8 @@ Priority: optional
 Section: python
 Maintainer: [% $author %]
 Standards-Version: [% $standards_version %]
-Build-Depends: [% $build_depends %], python3-poetry
+Build-Depends: [% $build_depends %], python3-poetry, pybuild-plugin-pyproject
+Build-Depends-Indep: python3-poetry-core
 Rules-Requires-Root: no
 
 Package: python3-[% $source %]


=====================================
t/recipes/checks/languages/python/python-wrong-poetry/build-spec/fill-values
=====================================
@@ -1,3 +1,4 @@
 Skeleton: source-native
 Testname: python-wrong-poetry
-Description: Check packages that build-depend on python3-poetry.
+Description: Check packages that build-depend on python3-poetry. Also acts as a
+ test for packages that have the pyproject dependencies in Build-Depends-Indep.


=====================================
t/recipes/checks/languages/python/python-wrong-poetry/eval/hints
=====================================
@@ -1,2 +1 @@
 python-wrong-poetry (source): uses-poetry-cli [pyproject.toml:3]
-python-wrong-poetry (source): missing-prerequisite-for-pyproject-backend 
poetry.core.masonry.api (does not satisfy python3-poetry-core:any, 
pybuild-plugin-pyproject:any) [pyproject.toml:3]



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

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


Reply via email to