From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgcheck/, dev-util/pkgcheck/files/
Date: Sat, 4 Mar 2023 18:23:36 +0000 (UTC) [thread overview]
Message-ID: <1677954173.1a279942bfe72b50aa5dbc561ab091432fc9ec97.arthurzam@gentoo> (raw)
commit: 1a279942bfe72b50aa5dbc561ab091432fc9ec97
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 4 18:22:53 2023 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 4 18:22:53 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a279942
dev-util/pkgcheck: fix for renamed python scm packages
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
.../pkgcheck/files/pkgcheck-0.10.21-fix-scm.patch | 37 ++++++++++++++++++++++
...k-0.10.21.ebuild => pkgcheck-0.10.21-r1.ebuild} | 4 +++
...k-0.10.22.ebuild => pkgcheck-0.10.22-r1.ebuild} | 4 +++
3 files changed, 45 insertions(+)
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",
+ }
+ )
diff --git a/dev-util/pkgcheck/pkgcheck-0.10.21.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.21-r1.ebuild
similarity index 97%
rename from dev-util/pkgcheck/pkgcheck-0.10.21.ebuild
rename to dev-util/pkgcheck/pkgcheck-0.10.21-r1.ebuild
index 66e807c20cc1..6c5f4ff38cef 100644
--- a/dev-util/pkgcheck/pkgcheck-0.10.21.ebuild
+++ b/dev-util/pkgcheck/pkgcheck-0.10.21-r1.ebuild
@@ -55,6 +55,10 @@ BDEPEND="${RDEPEND}
)
"
+PATCHES=(
+ "${FILESDIR}/${PN}-0.10.21-fix-scm.patch"
+)
+
SITEFILE="50${PN}-gentoo.el"
distutils_enable_tests pytest
diff --git a/dev-util/pkgcheck/pkgcheck-0.10.22.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.22-r1.ebuild
similarity index 97%
rename from dev-util/pkgcheck/pkgcheck-0.10.22.ebuild
rename to dev-util/pkgcheck/pkgcheck-0.10.22-r1.ebuild
index 582d6f268d39..00ae8b9e321b 100644
--- a/dev-util/pkgcheck/pkgcheck-0.10.22.ebuild
+++ b/dev-util/pkgcheck/pkgcheck-0.10.22-r1.ebuild
@@ -55,6 +55,10 @@ BDEPEND="${RDEPEND}
)
"
+PATCHES=(
+ "${FILESDIR}/${PN}-0.10.21-fix-scm.patch"
+)
+
SITEFILE="50${PN}-gentoo.el"
distutils_enable_tests pytest
next reply other threads:[~2023-03-04 18:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-04 18:23 Arthur Zamarin [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-02-03 12:52 [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgcheck/, dev-util/pkgcheck/files/ Arthur Zamarin
2022-12-31 11:32 Arthur Zamarin
2022-08-01 20:39 Sam James
2021-08-25 16:55 Michał Górny
2021-05-09 9:13 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1677954173.1a279942bfe72b50aa5dbc561ab091432fc9ec97.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox