mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 10:38:07 -07:00
dev-python/pyprotocols: Port to EAPI 6
Bug: https://bugs.gentoo.org/show_bug.cgi?id=611216 Package-Manager: Portage-2.3.4, Repoman-2.3.2
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
diff -ur PyProtocols.orig/src/protocols/tests/__init__.py PyProtocols/src/protocols/tests/__init__.py
|
||||
--- src/protocols/tests/__init__.py 2007-04-25 12:15:46.000000000 +0800
|
||||
+++ src/protocols/tests/__init__.py 2013-04-10 19:22:28.720647271 +0800
|
||||
--- a/src/protocols/tests/__init__.py
|
||||
+++ b/src/protocols/tests/__init__.py
|
||||
@@ -256,22 +256,6 @@
|
||||
makeSuite(GenerationTests,'check'),
|
||||
]
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1 flag-o-matic eutils
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PN="PyProtocols"
|
||||
MY_P="${MY_PN}-${PV/_pre/a0dev_r}"
|
||||
@@ -26,12 +27,14 @@ DEPEND="${RDEPEND}
|
||||
|
||||
S="${WORKDIR}/${MY_PN}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/SkipTests.patch )
|
||||
DOCS=( CHANGES.txt README.txt UPGRADING.txt )
|
||||
|
||||
python_prepare_all() {
|
||||
# Rm peripheral & rogue failing tests
|
||||
rm -f src//protocols/tests/{test_twisted.py,test_zope.py} || die
|
||||
epatch "${FILESDIR}"/SkipTests.patch
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
@@ -39,6 +42,5 @@ python_configure_all() {
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test && einfo "Tests passed under ${EPYTHON}" \
|
||||
|| die "Tests failed under ${EPYTHON}"
|
||||
esetup.py test || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user