public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pipdeptree/
Date: Sat, 13 Jul 2024 04:46:01 +0000 (UTC)	[thread overview]
Message-ID: <1720845894.9a66676b3011d9d20ad93e9a78fe0a1a6be3e595.mgorny@gentoo> (raw)

commit:     9a66676b3011d9d20ad93e9a78fe0a1a6be3e595
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 13 04:34:06 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 13 04:44:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a66676b

dev-python/pipdeptree: Fix ImportError with unbundled pip

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../{pipdeptree-2.16.2.ebuild => pipdeptree-2.16.2-r1.ebuild}     | 8 ++++++++
 .../{pipdeptree-2.17.0.ebuild => pipdeptree-2.17.0-r1.ebuild}     | 7 +++++++
 .../{pipdeptree-2.21.0.ebuild => pipdeptree-2.21.0-r1.ebuild}     | 7 +++++++
 .../{pipdeptree-2.23.0.ebuild => pipdeptree-2.22.0-r1.ebuild}     | 7 +++++++
 .../{pipdeptree-2.22.0.ebuild => pipdeptree-2.23.0-r1.ebuild}     | 7 +++++++
 5 files changed, 36 insertions(+)

diff --git a/dev-python/pipdeptree/pipdeptree-2.16.2.ebuild b/dev-python/pipdeptree/pipdeptree-2.16.2-r1.ebuild
similarity index 86%
rename from dev-python/pipdeptree/pipdeptree-2.16.2.ebuild
rename to dev-python/pipdeptree/pipdeptree-2.16.2-r1.ebuild
index dbb4e804f288..8c04dc58e0a6 100644
--- a/dev-python/pipdeptree/pipdeptree-2.16.2.ebuild
+++ b/dev-python/pipdeptree/pipdeptree-2.16.2-r1.ebuild
@@ -19,6 +19,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm64 ~riscv"
 
 RDEPEND="
+	>=dev-python/packaging-23.1[${PYTHON_USEDEP}]
 	>=dev-python/pip-23.1.2[${PYTHON_USEDEP}]
 "
 BDEPEND="
@@ -38,6 +39,13 @@ PATCHES=(
 
 distutils_enable_tests pytest
 
+src_prepare() {
+	distutils-r1_src_prepare
+
+	find -name '*.py' -exec \
+		sed -i -e 's:pip[.]_vendor[.]::' {} + || die
+}
+
 python_test() {
 	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
 	epytest -p pytest_mock

diff --git a/dev-python/pipdeptree/pipdeptree-2.17.0.ebuild b/dev-python/pipdeptree/pipdeptree-2.17.0-r1.ebuild
similarity index 90%
rename from dev-python/pipdeptree/pipdeptree-2.17.0.ebuild
rename to dev-python/pipdeptree/pipdeptree-2.17.0-r1.ebuild
index d4b8329e97ea..ab9fab7bed89 100644
--- a/dev-python/pipdeptree/pipdeptree-2.17.0.ebuild
+++ b/dev-python/pipdeptree/pipdeptree-2.17.0-r1.ebuild
@@ -39,6 +39,13 @@ PATCHES=(
 
 distutils_enable_tests pytest
 
+src_prepare() {
+	distutils-r1_src_prepare
+
+	find -name '*.py' -exec \
+		sed -i -e 's:pip[.]_vendor[.]::' {} + || die
+}
+
 python_test() {
 	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
 	epytest -p pytest_mock

diff --git a/dev-python/pipdeptree/pipdeptree-2.21.0.ebuild b/dev-python/pipdeptree/pipdeptree-2.21.0-r1.ebuild
similarity index 90%
rename from dev-python/pipdeptree/pipdeptree-2.21.0.ebuild
rename to dev-python/pipdeptree/pipdeptree-2.21.0-r1.ebuild
index dae7c7c1be5b..2e77548af84f 100644
--- a/dev-python/pipdeptree/pipdeptree-2.21.0.ebuild
+++ b/dev-python/pipdeptree/pipdeptree-2.21.0-r1.ebuild
@@ -39,6 +39,13 @@ PATCHES=(
 
 distutils_enable_tests pytest
 
+src_prepare() {
+	distutils-r1_src_prepare
+
+	find -name '*.py' -exec \
+		sed -i -e 's:pip[.]_vendor[.]::' {} + || die
+}
+
 python_test() {
 	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
 	epytest -p pytest_mock -p console-scripts

diff --git a/dev-python/pipdeptree/pipdeptree-2.23.0.ebuild b/dev-python/pipdeptree/pipdeptree-2.22.0-r1.ebuild
similarity index 89%
rename from dev-python/pipdeptree/pipdeptree-2.23.0.ebuild
rename to dev-python/pipdeptree/pipdeptree-2.22.0-r1.ebuild
index bf7d74541259..0f2bc0747e89 100644
--- a/dev-python/pipdeptree/pipdeptree-2.23.0.ebuild
+++ b/dev-python/pipdeptree/pipdeptree-2.22.0-r1.ebuild
@@ -34,6 +34,13 @@ BDEPEND="
 
 distutils_enable_tests pytest
 
+src_prepare() {
+	distutils-r1_src_prepare
+
+	find -name '*.py' -exec \
+		sed -i -e 's:pip[.]_vendor[.]::' {} + || die
+}
+
 python_test() {
 	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
 	epytest -p pytest_mock -p console-scripts

diff --git a/dev-python/pipdeptree/pipdeptree-2.22.0.ebuild b/dev-python/pipdeptree/pipdeptree-2.23.0-r1.ebuild
similarity index 89%
rename from dev-python/pipdeptree/pipdeptree-2.22.0.ebuild
rename to dev-python/pipdeptree/pipdeptree-2.23.0-r1.ebuild
index bf7d74541259..0f2bc0747e89 100644
--- a/dev-python/pipdeptree/pipdeptree-2.22.0.ebuild
+++ b/dev-python/pipdeptree/pipdeptree-2.23.0-r1.ebuild
@@ -34,6 +34,13 @@ BDEPEND="
 
 distutils_enable_tests pytest
 
+src_prepare() {
+	distutils-r1_src_prepare
+
+	find -name '*.py' -exec \
+		sed -i -e 's:pip[.]_vendor[.]::' {} + || die
+}
+
 python_test() {
 	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
 	epytest -p pytest_mock -p console-scripts


             reply	other threads:[~2024-07-13  4:46 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-13  4:46 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-05  8:26 [gentoo-commits] repo/gentoo:master commit in: dev-python/pipdeptree/ Arthur Zamarin
2024-09-28 12:32 Arthur Zamarin
2024-09-18 14:03 Michał Górny
2024-09-08  2:52 Michał Górny
2024-08-17  7:39 Michał Górny
2024-08-17  7:28 Michał Górny
2024-08-15 13:41 Petr Vaněk
2024-08-15  5:44 Joonas Niilola
2024-07-13  4:46 Michał Górny
2024-06-18  4:45 Michał Górny
2024-06-03 15:49 Michał Górny
2024-05-28  4:45 Michał Górny
2024-04-05  2:45 Michał Górny
2024-03-26  6:57 Michał Górny
2024-03-05  5:18 Michał Górny
2024-03-02  6:43 Michał Górny
2024-02-24  8:49 Michał Górny
2024-02-16  5:40 Michał Górny
2023-12-30 18:30 Michał Górny
2023-12-29 23:32 Sam James
2023-12-27 16:29 Michał Górny
2023-12-02 19:31 Jakov Smolić
2023-10-27  3:25 Sam James

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=1720845894.9a66676b3011d9d20ad93e9a78fe0a1a6be3e595.mgorny@gentoo \
    --to=mgorny@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