Nilesh Patra pushed to branch master at lintian / lintian
Commits: 92f389b7 by Louis-Philippe VĂ©ronneau at 2024-02-16T14:34:58-05:00 missing-prerequisite-for-pyproject-backend: add support for whey - - - - - 6 changed files: - lib/Lintian/Check/Languages/Python.pm - + t/recipes/checks/languages/python/python-could-use-pyproject-whey/build-spec/debian/control.in - + t/recipes/checks/languages/python/python-could-use-pyproject-whey/build-spec/fill-values - + t/recipes/checks/languages/python/python-could-use-pyproject-whey/build-spec/orig/pyproject.toml - + t/recipes/checks/languages/python/python-could-use-pyproject-whey/eval/desc - + t/recipes/checks/languages/python/python-could-use-pyproject-whey/eval/hints Changes: ===================================== lib/Lintian/Check/Languages/Python.pm ===================================== @@ -224,7 +224,8 @@ sub source { 'pdm.pep517.api' => 'python3-pdm-pep517:any', 'hatchling.build' => 'python3-hatchling:any', 'mesonpy' => 'python3-mesonpy:any', - 'sipbuild.api' => 'python3-sipbuild:any' + 'sipbuild.api' => 'python3-sipbuild:any', + 'whey' => 'python3-whey:any' ); open(my $fd, '<', $pyproject->unpacked_path) ===================================== t/recipes/checks/languages/python/python-could-use-pyproject-whey/build-spec/debian/control.in ===================================== @@ -0,0 +1,18 @@ +Source: [% $source %] +Priority: optional +Section: python +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: python3-[% $source %] +Architecture: all +Depends: ${misc:Depends}, python3 +Description: Test package (Python 3) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + Python 3 variant. ===================================== t/recipes/checks/languages/python/python-could-use-pyproject-whey/build-spec/fill-values ===================================== @@ -0,0 +1,3 @@ +Skeleton: source-native +Testname: python-could-use-pyproject-whey +Description: Check for a package not built using pyproject whey, but that could. ===================================== t/recipes/checks/languages/python/python-could-use-pyproject-whey/build-spec/orig/pyproject.toml ===================================== @@ -0,0 +1,3 @@ +[build-system] +requires = [ "whey[readme]",] +build-backend = "whey" ===================================== t/recipes/checks/languages/python/python-could-use-pyproject-whey/eval/desc ===================================== @@ -0,0 +1,2 @@ +Testname: python-could-use-pyproject-whey +Check: languages/python ===================================== t/recipes/checks/languages/python/python-could-use-pyproject-whey/eval/hints ===================================== @@ -0,0 +1 @@ +python-could-use-pyproject-whey (source): missing-prerequisite-for-pyproject-backend whey (does not satisfy python3-whey:any, pybuild-plugin-pyproject:any) [pyproject.toml:3] View it on GitLab: https://salsa.debian.org/lintian/lintian/-/commit/92f389b73620b5a7de34958f40acc00de3f4b48c -- View it on GitLab: https://salsa.debian.org/lintian/lintian/-/commit/92f389b73620b5a7de34958f40acc00de3f4b48c You're receiving this email because of your account on salsa.debian.org.