idella4 14/05/27 13:52:44 Modified: twisted-core-14.0.0.ebuild ChangeLog Log: Correct USE test set in RDEPEND, minor tidy, update test phase, ticket filed upstream for multi test failures, holding back on py3 support (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Revision Changes Path 1.5 dev-python/twisted-core/twisted-core-14.0.0.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted-core/twisted-core-14.0.0.ebuild?rev=1.5&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted-core/twisted-core-14.0.0.ebuild?rev=1.5&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted-core/twisted-core-14.0.0.ebuild?r1=1.4&r2=1.5 Index: twisted-core-14.0.0.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/twisted-core/twisted-core-14.0.0.ebuild,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- twisted-core-14.0.0.ebuild 20 May 2014 08:51:01 -0000 1.4 +++ twisted-core-14.0.0.ebuild 27 May 2014 13:52:44 -0000 1.5 @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-core/twisted-core-14.0.0.ebuild,v 1.4 2014/05/20 08:51:01 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-core/twisted-core-14.0.0.ebuild,v 1.5 2014/05/27 13:52:44 idella4 Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7} ) @@ -12,12 +12,11 @@ KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="crypt gtk serial test" -DEPEND=">=net-zope/zope-interface-3.6.0[${PYTHON_USEDEP}] +RDEPEND=">=net-zope/zope-interface-3.6.0[${PYTHON_USEDEP}] crypt? ( >=dev-python/pyopenssl-0.10[${PYTHON_USEDEP}] ) gtk? ( dev-python/pygtk:2[${PYTHON_USEDEP}] ) - serial? ( dev-python/pyserial[${PYTHON_USEDEP}] ) - test? ( dev-python/twisted-lore[${PYTHON_USEDEP}] )" -RDEPEND="${DEPEND}" + serial? ( dev-python/pyserial[${PYTHON_USEDEP}] )" +DEPEND="test? ( ${RDEPEND} )" PATCHES=( # Give a load-sensitive test a better chance of succeeding. @@ -46,10 +45,9 @@ python_compile() { local CFLAGS CXXFLAGS - if [[ ${EPYTHON} != python3* ]]; then + if ! python_is_python3; then # Needed to make the sendmsg extension work # (see http://twistedmatrix.com/trac/ticket/5701 ) - append-flags -fno-strict-aliasing fi @@ -57,8 +55,7 @@ } python_test() { - # NOTE: on pypy a couple of failures (refcounting, version-checking) is - # expected + # NOTE: on pypy a couple of failures (refcounting, version-checking) is expected distutils_install_for_testing @@ -70,10 +67,6 @@ sed -e "/class ZshIntegrationTestCase/,/^$/d" -i twisted/scripts/test/test_scripts.py \ || die "sed failed" - # tap2rpm is already skipped if rpm is not installed, but fails for me on a Gentoo box with it present. - # I currently lack the cycles to track this failure down. - rm twisted/scripts/test/test_tap2rpm.py - # Prevent it from pulling in plugins from already installed twisted packages. rm -f twisted/plugins/__init__.py @@ -84,12 +77,24 @@ sed -e 's:test_basicOperation:_&:' -i twisted/scripts/test/test_tap2deb.py || die sed -e 's:test_inspectCertificate:_&:' -i twisted/test/test_sslverify.py || die - # Requires twisted-web creating a cric. dep + # Requires twisted-web, twisted-lore and twisted-names, creating a circ. dep and fail even if installed. + # test_loreDeprecation and test_exist failures appeared in version 14.0.0. rm -f twisted/python/test/test_release.py || die + sed -e 's:test_loreDeprecation:_&:' -i twisted/test/test_twisted.py || die + sed -e 's:test_exist:_&:' -i twisted/python/test/test_dist3.py || die # Requires connection to the network sed -e 's:test_multiListen:_&:' -i twisted/test/test_udp.py || die + # Appeared in version 14.0.0; https://twistedmatrix.com/trac/ticket/7422 + sed -e 's:test_dataReceivedThrows:_&:' \ + -e 's:test_resumeProducingThrows:_&:' \ + -e 's:test_resumeProducingAbortLater:_&:' \ + -e 's:test_resumeProducingAbort:_&:' \ + -e 's:test_fullWriteBufferAfterByteExchange:_&:' \ + -i twisted/internet/test/test_tcp.py || die + sed -e 's:test_logPrefix:_&:' -i twisted/internet/test/connectionmixins.py || die + if ! "${TEST_DIR}"/scripts/trial twisted; then die "Tests failed with ${EPYTHON}" fi 1.24 dev-python/twisted-core/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted-core/ChangeLog?rev=1.24&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted-core/ChangeLog?rev=1.24&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/twisted-core/ChangeLog?r1=1.23&r2=1.24 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/twisted-core/ChangeLog,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- ChangeLog 20 May 2014 08:51:01 -0000 1.23 +++ ChangeLog 27 May 2014 13:52:44 -0000 1.24 @@ -1,6 +1,10 @@ # ChangeLog for dev-python/twisted-core # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-core/ChangeLog,v 1.23 2014/05/20 08:51:01 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/twisted-core/ChangeLog,v 1.24 2014/05/27 13:52:44 idella4 Exp $ + + 27 May 2014; Ian Delaney <[email protected]> twisted-core-14.0.0.ebuild: + Correct USE test set in RDEPEND, minor tidy, update test phase, ticket filed + upstream for multi test failures, holding back on py3 support 20 May 2014; Jeroen Roovers <[email protected]> twisted-core-14.0.0.ebuild: Add dep, drop keywords.
