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/zope-configuration/
Date: Sat,  9 Apr 2022 14:37:06 +0000 (UTC)	[thread overview]
Message-ID: <1649515024.12fe9af7a991bb03bceb08456c2770e949247277.mgorny@gentoo> (raw)

commit:     12fe9af7a991bb03bceb08456c2770e949247277
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  9 14:36:47 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr  9 14:37:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12fe9af7

dev-python/zope-configuration: Use pkgutil-style namespace for tests

Use pkgutil-style namespace for testing since it seems to work fine
when site-packages has either pkg_resources or PEP 420 namespaces.

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

 dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild b/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild
index 402cfde1a07c..5f6facdf2553 100644
--- a/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild
+++ b/dev-python/zope-configuration/zope-configuration-4.4.1-r1.ebuild
@@ -46,7 +46,7 @@ python_compile() {
 python_test() {
 	cd "${BUILD_DIR}/install$(python_get_sitedir)/zope" || die
 	cat > __init__.py <<-EOF || die
-		__import__('pkg_resources').declare_namespace(__name__)
+		__path__ = __import__('pkgutil').extend_path(__path__, __name__)
 	EOF
 	eunittest -s configuration/tests
 	rm __init__.py || die


             reply	other threads:[~2022-04-09 14:37 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-09 14:37 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-18 15:56 [gentoo-commits] repo/gentoo:master commit in: dev-python/zope-configuration/ Michał Górny
2024-03-02 11:44 Michał Górny
2024-03-02 10:54 Arthur Zamarin
2024-02-13  4:27 Michał Górny
2023-06-06  6:13 Michał Górny
2023-06-03 19:17 Michał Górny
2023-06-03 18:06 Arthur Zamarin
2023-05-04  8:06 Michał Górny
2023-03-21  6:49 Michał Górny
2023-03-17 18:28 Michał Górny
2022-11-09  6:53 Sam James
2022-04-22 15:35 Michał Górny
2022-04-22 15:11 Arthur Zamarin
2022-04-22 15:11 Arthur Zamarin
2022-04-22 15:11 Arthur Zamarin
2022-04-11 19:58 Michał Górny
2022-04-09 21:47 Jakov Smolić
2022-04-09 20:23 Michał Górny
2022-04-09 18:56 Michał Górny
2022-04-09 14:58 Michał Górny
2022-04-09 11:37 Michał Górny
2022-04-09  5:57 Michał Górny
2022-04-08  8:56 Michał Górny
2021-10-10 11:00 Michał Górny
2021-10-10  2:20 Sam James
2021-10-10  0:09 Sam James
2021-10-09 20:19 Sam James
2021-09-22 13:30 Arthur Zamarin
2021-03-02  8:40 Sam James
2020-10-16 18:22 Michał Górny
2020-08-22  7:13 Michał Górny
2020-08-18 15:10 Sam James
2020-08-18 14:59 Sam James
2020-08-02  9:33 Michał Górny
2020-03-29 12:22 Michał Górny
2020-01-12 20:19 Matthew Thode
2018-03-17 21:41 Michał Górny
2017-12-11  3:49 Matt Thode

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=1649515024.12fe9af7a991bb03bceb08456c2770e949247277.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