commit:     bf68177d4026b014f96e64ff3c3a632ecc30a5d2
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  4 18:24:17 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Mar  4 18:24:17 2023 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=bf68177d

PythonMissingSCMDependency: update to new pkg names

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 src/pkgcheck/checks/python.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

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",
         }
     )

Reply via email to