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/jaraco-itertools/
Date: Fri,  4 Feb 2022 18:32:29 +0000 (UTC)	[thread overview]
Message-ID: <1643999543.25fb81458668d3f0c2d68b49ba79048bc752587d.mgorny@gentoo> (raw)

commit:     25fb81458668d3f0c2d68b49ba79048bc752587d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  4 18:29:46 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb  4 18:32:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25fb8145

dev-python/jaraco-itertools: Fix ns-caused import failures

Closes: https://bugs.gentoo.org/832714
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/jaraco-itertools/jaraco-itertools-6.0.3.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-python/jaraco-itertools/jaraco-itertools-6.0.3.ebuild b/dev-python/jaraco-itertools/jaraco-itertools-6.0.3.ebuild
index db86fa022f88..68c9258b26b8 100644
--- a/dev-python/jaraco-itertools/jaraco-itertools-6.0.3.ebuild
+++ b/dev-python/jaraco-itertools/jaraco-itertools-6.0.3.ebuild
@@ -31,7 +31,11 @@ distutils_enable_tests pytest
 export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
 
 python_test() {
-	# needed for doctests to work
-	> jaraco/__init__.py || die
+	# create a pkgutil-style __init__.py in order to fix pytest's
+	# determination of package paths
+	cat > jaraco/__init__.py <<-EOF || die
+		__path__ = __import__('pkgutil').extend_path(__path__, __name__)
+	EOF
 	epytest --doctest-modules
+	rm jaraco/__init__.py || die
 }


             reply	other threads:[~2022-02-04 18:32 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-04 18:32 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-01  6:18 [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-itertools/ Arthur Zamarin
2023-08-19 16:21 Michał Górny
2023-08-19 16:19 Arthur Zamarin
2023-08-19 15:53 Michał Górny
2023-07-13  5:28 Michał Górny
2023-06-03  8:17 Michał Górny
2023-03-21 16:45 Michał Górny
2023-02-12 19:05 Michał Górny
2023-02-07  9:26 Michał Górny
2022-06-02  8:32 Michał Górny
2022-05-13 16:31 Arthur Zamarin
2022-03-15 14:10 Michał Górny
2022-03-15 11:44 Jakov Smolić
2022-02-22 19:01 Michał Górny
2022-02-21  9:15 Michał Górny
2022-02-04 18:32 Michał Górny
2022-02-04 12:04 Michał Górny
2022-01-19 22:45 James Le Cuirot
2021-10-24  8:43 Michał Górny
2021-10-24  0:19 Sam James
2021-09-18  7:00 Michał Górny
2021-05-06 14:44 Michał Górny
2021-04-18  7:05 Michał Górny
2021-04-18  1:41 Sam James
2021-03-15  8:34 Michał Górny
2020-11-28  8:27 Sam James
2020-09-21 15:30 Michał Górny
2020-09-20 15:38 Michał Górny
2020-09-19  0:25 Sam James
2020-09-19  0:23 Sam James
2020-09-19  0:17 Sam James
2020-09-04 23:03 Louis Sautier
2020-05-15 17:33 Sergei Trofimovich
2020-05-14  8:03 Agostino Sarubbo
2020-05-13 17:14 Agostino Sarubbo
2020-05-13 17:12 Agostino Sarubbo
2020-05-13 17:11 Agostino Sarubbo
2020-05-13 14:52 Agostino Sarubbo
2020-05-13 13:18 Agostino Sarubbo
2020-04-23  8:10 Sergei Trofimovich
2020-04-09 18:40 Sergei Trofimovich
2020-03-25 13:00 Michał Górny
2020-03-25 13:00 Michał Górny
2020-03-15 12:21 Mikle Kolyada
2020-03-03  7:22 Matt Turner
2020-02-06  9:02 Sergei Trofimovich
2020-02-06  8:34 Sergei Trofimovich
2020-02-06  8:23 Sergei Trofimovich
2020-01-27 13:15 Louis Sautier
2019-12-31 14:14 Louis Sautier
2019-12-31 14:14 Louis Sautier
2019-12-03  3:02 Aaron Bauman
2019-07-02 22:08 Louis Sautier
2019-07-02 22:08 Louis Sautier
2018-10-29 10:10 Louis Sautier
2018-10-29 10:10 Louis Sautier
2018-09-18 23:05 Louis Sautier
2018-09-18 23:05 Louis Sautier
2018-09-07 22:59 Louis Sautier
2018-07-25 21:10 Louis Sautier
2018-07-10 22:04 Louis Sautier
2018-07-10 22:04 Louis Sautier
2018-06-25 10:40 Jason Zaman
2018-06-23 14:15 Louis Sautier
2018-06-23 14:15 Louis Sautier
2018-06-23 14:09 Louis Sautier
2018-06-18 10:34 Louis Sautier
2017-06-17 17:24 Agostino Sarubbo
2017-06-17 15:36 Agostino Sarubbo
2016-09-04 13:35 Göktürk Yüksek
2016-09-04 13:35 Göktürk Yüksek
2016-09-03  4:33 Göktürk Yüksek
2015-12-29 23:36 Ian Delaney

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=1643999543.25fb81458668d3f0c2d68b49ba79048bc752587d.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