From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1495187-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 0C01515802F
	for <garchives@archives.gentoo.org>; Sat, 11 Mar 2023 10:19:44 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4548AE076B;
	Sat, 11 Mar 2023 10:19:43 +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) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 241E6E076B
	for <gentoo-commits@lists.gentoo.org>; Sat, 11 Mar 2023 10:19:43 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(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 139FA340E22
	for <gentoo-commits@lists.gentoo.org>; Sat, 11 Mar 2023 10:19:42 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 353828BC
	for <gentoo-commits@lists.gentoo.org>; Sat, 11 Mar 2023 10:19:40 +0000 (UTC)
From: "Viorel Munteanu" <ceamac@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, "Viorel Munteanu" <ceamac@gentoo.org>
Message-ID: <1678529975.a50063274b728a1e117d4e9cfc483a95240d2b1b.ceamac@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/dropbox/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: dev-python/dropbox/dropbox-11.36.0.ebuild
X-VCS-Directories: dev-python/dropbox/
X-VCS-Committer: ceamac
X-VCS-Committer-Name: Viorel Munteanu
X-VCS-Revision: a50063274b728a1e117d4e9cfc483a95240d2b1b
X-VCS-Branch: dev
Date: Sat, 11 Mar 2023 10:19:40 +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: beca71c0-d5a6-4846-b1cc-7442864102c4
X-Archives-Hash: 5106ca5ba8ce2a693eecb99d963b317c
Message-ID: <20230311101940.BR3UOxoaTa9Mzam4M6q4MI_PfP0S7adRs6EpV1Hz8rE@z>

commit:     a50063274b728a1e117d4e9cfc483a95240d2b1b
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 11 10:17:03 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Mar 11 10:19:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a5006327

dev-python/dropbox: check pypi and tests

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 dev-python/dropbox/dropbox-11.36.0.ebuild | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/dev-python/dropbox/dropbox-11.36.0.ebuild b/dev-python/dropbox/dropbox-11.36.0.ebuild
index c088da3c8..49177dc08 100644
--- a/dev-python/dropbox/dropbox-11.36.0.ebuild
+++ b/dev-python/dropbox/dropbox-11.36.0.ebuild
@@ -11,6 +11,7 @@ GH_PN=dropbox-sdk-python
 
 DESCRIPTION="The offical Dropbox SDK for Python"
 HOMEPAGE="https://www.dropbox.com/developers"
+# pypi does not have tests, stick with gh
 SRC_URI="https://github.com/dropbox/${GH_PN}/archive/refs/tags/v${PV}.tar.gz -> ${GH_PN}-${PV}.gh.tar.gz"
 S="${WORKDIR}"/${GH_PN}-${PV}
 
@@ -26,18 +27,19 @@ RDEPEND="
 
 PATCHES=( "${FILESDIR}"/${P}-setuptools-67.patch )
 
+# disable tests that need SCOPED_USER_DROPBOX_TOKEN
+# and tests that fail
+EPYTEST_DESELECT=(
+	test/integration/test_dropbox.py
+	test/unit/test_dropbox_unit.py::TestClient
+	test/unit/test_dropbox_unit.py::TestOAuth::test_NoRedirect_whole_flow
+)
+
 distutils_enable_tests pytest
 
 python_prepare_all() {
-	# Don't run tests via setup.py pytest
-	sed -i -e "/'pytest-runner.*',/d" setup.py || die
 	# this is wrong
 	sed -i -e "s/^import mock$/from unittest import mock/" test/unit/test_dropbox_unit.py || die
 
-	# disable tests that need SCOPED_USER_DROPBOX_TOKEN
-	mv test/integration/test_dropbox.py test/integration/_test_dropbox.py || die
-	sed -i -e "s/\(class\) \(TestClient\)/\\1 _\\2/
-	           s/test_NoRedirect_whole_flow/_&/" test/unit/test_dropbox_unit.py || die
-
 	distutils-r1_python_prepare_all
 }