commit:     33d8eabb07b8ece60a9c898749bd88838d32ca7c
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 24 19:43:11 2020 +0000
Commit:     罗百科 <patrick <AT> gentoo <DOT> org>
CommitDate: Wed Jun 24 19:43:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33d8eabb

dev-db/pgxnclient: [QA] work around vandalism from QA team

Just rip out all traces of test support then.
At least now it's installable, which is in general a good thing.

Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 .../{pgxnclient-1.3.ebuild => pgxnclient-1.3-r2.ebuild}        | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/dev-db/pgxnclient/pgxnclient-1.3.ebuild 
b/dev-db/pgxnclient/pgxnclient-1.3-r2.ebuild
similarity index 78%
rename from dev-db/pgxnclient/pgxnclient-1.3.ebuild
rename to dev-db/pgxnclient/pgxnclient-1.3-r2.ebuild
index 586f7287262..cdfc06d4a44 100644
--- a/dev-db/pgxnclient/pgxnclient-1.3.ebuild
+++ b/dev-db/pgxnclient/pgxnclient-1.3-r2.ebuild
@@ -16,12 +16,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 
~s390 ~sparc ~x86"
 LICENSE="BSD"
 SLOT="0"
 
-IUSE="test"
-
-# Test data isn't included in releases. So, the tests fail.
-# https://github.com/pgxn/pgxnclient/issues/36
-RESTRICT="test
-       !test? ( test )"
+IUSE=""
 
 distutils_enable_tests pytest
 
@@ -29,10 +24,11 @@ RDEPEND="dev-db/postgresql:*[server]
        dev-python/six[${PYTHON_USEDEP}]
 "
 DEPEND+="${RDEPEND}
-       test? ( dev-python/mock[${PYTHON_USEDEP}] )
 "
 
 src_prepare() {
+       sed "s/setup_requires/#/" -i setup.py || die
+
        sed "s/find_packages()/find_packages(exclude=['tests'])/" -i setup.py 
|| die
 
        default

Reply via email to