From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1364509-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id C4496158088
	for <garchives@archives.gentoo.org>; Fri,  4 Feb 2022 18:32:33 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C6A102BC00E;
	Fri,  4 Feb 2022 18:32:32 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A5E372BC007
	for <gentoo-commits@lists.gentoo.org>; Fri,  4 Feb 2022 18:32:32 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id EFE45343275
	for <gentoo-commits@lists.gentoo.org>; Fri,  4 Feb 2022 18:32:30 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 553B62C4
	for <gentoo-commits@lists.gentoo.org>; Fri,  4 Feb 2022 18:32:29 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <1643999543.25fb81458668d3f0c2d68b49ba79048bc752587d.mgorny@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-itertools/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-python/jaraco-itertools/jaraco-itertools-6.0.3.ebuild
X-VCS-Directories: dev-python/jaraco-itertools/
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: 25fb81458668d3f0c2d68b49ba79048bc752587d
X-VCS-Branch: master
Date: Fri,  4 Feb 2022 18:32:29 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: d9be7a91-27ae-4591-9169-8590d61f412a
X-Archives-Hash: 8dbe22e08706088e1d2336a1a5cc4d5f

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
 }