diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-01-31 20:00:51 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-02-03 15:03:35 +0200 |
commit | 87226810dca088b8eec5d03639b3d830293c82aa (patch) | |
tree | 1e876e3f761e9d7ff742adb966c762b0dfbea929 /testdata | |
parent | Suppress the black reformat commit from git blame (diff) | |
download | pkgcheck-87226810dca088b8eec5d03639b3d830293c82aa.tar.gz pkgcheck-87226810dca088b8eec5d03639b3d830293c82aa.tar.bz2 pkgcheck-87226810dca088b8eec5d03639b3d830293c82aa.zip |
PythonCheck: check for missing scm dep when needed
Resolves: https://github.com/pkgcore/pkgcheck/issues/537
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
4 files changed, 26 insertions, 0 deletions
diff --git a/testdata/data/repos/python/PythonCheck/PythonMissingSCMDependency/expected.json b/testdata/data/repos/python/PythonCheck/PythonMissingSCMDependency/expected.json new file mode 100644 index 00000000..9297a0d5 --- /dev/null +++ b/testdata/data/repos/python/PythonCheck/PythonMissingSCMDependency/expected.json @@ -0,0 +1 @@ +{"__class__": "PythonMissingSCMDependency", "category": "PythonCheck", "package": "PythonMissingSCMDependency", "version": "0"} diff --git a/testdata/data/repos/python/PythonCheck/PythonMissingSCMDependency/fix.patch b/testdata/data/repos/python/PythonCheck/PythonMissingSCMDependency/fix.patch new file mode 100644 index 00000000..94f8de26 --- /dev/null +++ b/testdata/data/repos/python/PythonCheck/PythonMissingSCMDependency/fix.patch @@ -0,0 +1,8 @@ +--- python/PythonCheck/PythonMissingSCMDependency/PythonMissingSCMDependency-0.ebuild ++++ fixed/PythonCheck/PythonMissingSCMDependency/PythonMissingSCMDependency-0.ebuild +@@ -10,4 +10,5 @@ + LICENSE="BSD" + SLOT="0" + ++BDEPEND="dev-python/hatch-vcs[${PYTHON_USEDEP}]" + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} diff --git a/testdata/repos/python/PythonCheck/PythonMissingSCMDependency/PythonMissingSCMDependency-0.ebuild b/testdata/repos/python/PythonCheck/PythonMissingSCMDependency/PythonMissingSCMDependency-0.ebuild new file mode 100644 index 00000000..79a8a8df --- /dev/null +++ b/testdata/repos/python/PythonCheck/PythonMissingSCMDependency/PythonMissingSCMDependency-0.ebuild @@ -0,0 +1,13 @@ +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_10 ) + +inherit distutils-r1 + +DESCRIPTION="Ebuild with missing dep on scm" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +LICENSE="BSD" +SLOT="0" + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} diff --git a/testdata/repos/python/PythonCheck/PythonMissingSCMDependency/metadata.xml b/testdata/repos/python/PythonCheck/PythonMissingSCMDependency/metadata.xml new file mode 100644 index 00000000..097975e3 --- /dev/null +++ b/testdata/repos/python/PythonCheck/PythonMissingSCMDependency/metadata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +</pkgmetadata> |