summaryrefslogtreecommitdiff
path: root/dev-util/pkgcheck/files/pkgcheck-0.10.21-fix-scm.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-05 23:52:45 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-05 23:52:45 +0000
commit1c33e521c460dc40899ce7bc919602b842ce27e2 (patch)
tree580eefad4cce1e883e7504b93352a9029b53036d /dev-util/pkgcheck/files/pkgcheck-0.10.21-fix-scm.patch
parent65e4244e411c4f65f55f2aa91f39e228f4c0680b (diff)
gentoo auto-resync : 05:03:2023 - 23:52:45
Diffstat (limited to 'dev-util/pkgcheck/files/pkgcheck-0.10.21-fix-scm.patch')
-rw-r--r--dev-util/pkgcheck/files/pkgcheck-0.10.21-fix-scm.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-util/pkgcheck/files/pkgcheck-0.10.21-fix-scm.patch b/dev-util/pkgcheck/files/pkgcheck-0.10.21-fix-scm.patch
new file mode 100644
index 000000000000..387da2374107
--- /dev/null
+++ b/dev-util/pkgcheck/files/pkgcheck-0.10.21-fix-scm.patch
@@ -0,0 +1,37 @@
+diff --git a/src/pkgcheck/checks/python.py b/src/pkgcheck/checks/python.py
+index 291a56b4..19b87ef5 100644
+--- a/src/pkgcheck/checks/python.py
++++ b/src/pkgcheck/checks/python.py
+@@ -234,16 +234,16 @@ class PythonAnyMismatchedDepHasVersionCheck(results.VersionResult, results.Warni
+
+
+ class PythonMissingSCMDependency(results.VersionResult, results.Warning):
+- """Package is missing BDEPEND on setuptools_scm or alike.
++ """Package is missing BDEPEND on setuptools-scm or alike.
+
+ Packages which define ``SETUPTOOLS_SCM_PRETEND_VERSION`` should BDEPEND
+- on ``dev-python/setuptools_scm`` or a similar package [#]_.
++ on ``dev-python/setuptools-scm`` or a similar package [#]_.
+
+ .. [#] https://projects.gentoo.org/python/guide/distutils.html#setuptools-scm-flit-scm-hatch-vcs-and-snapshots
+ """
+
+ desc = (
+- "defines SETUPTOOLS_SCM_PRETEND_VERSION but is missing BDEPEND on setuptools_scm or alike"
++ "defines SETUPTOOLS_SCM_PRETEND_VERSION but is missing BDEPEND on setuptools-scm or alike"
+ )
+
+
+@@ -291,8 +291,10 @@ class PythonCheck(Check):
+
+ setuptools_scm = frozenset(
+ {
+- "dev-python/setuptools_scm",
+- "dev-python/flit_scm",
++ "dev-python/setuptools-scm",
++ "dev-python/setuptools_scm", # legacy old name
++ "dev-python/flit-scm",
++ "dev-python/flit_scm", # legacy old name
+ "dev-python/hatch-vcs",
+ }
+ )