idella4     15/07/09 07:47:28

  Modified:             ChangeLog
  Added:                testify-0.7.2.ebuild
  Log:
  bump; extend corrections to local imports used in test files, add py3 support
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
0xB8072B0D)

Revision  Changes    Path
1.23                 dev-python/testify/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testify/ChangeLog?rev=1.23&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testify/ChangeLog?rev=1.23&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testify/ChangeLog?r1=1.22&r2=1.23

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/testify/ChangeLog,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- ChangeLog   7 Jun 2015 16:15:20 -0000       1.22
+++ ChangeLog   9 Jul 2015 07:47:28 -0000       1.23
@@ -1,6 +1,11 @@
 # ChangeLog for dev-python/testify
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/testify/ChangeLog,v 1.22 
2015/06/07 16:15:20 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/testify/ChangeLog,v 1.23 
2015/07/09 07:47:28 idella4 Exp $
+
+*testify-0.7.2 (09 Jul 2015)
+
+  09 Jul 2015; Ian Delaney <[email protected]> +testify-0.7.2.ebuild:
+  bump; extend corrections to local imports used in test files, add py3 support
 
   07 Jun 2015; Justin Lecher <[email protected]> metadata.xml:
   Add github to remote-id in metadata.xml



1.1                  dev-python/testify/testify-0.7.2.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testify/testify-0.7.2.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/testify/testify-0.7.2.ebuild?rev=1.1&content-type=text/plain

Index: testify-0.7.2.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/testify/testify-0.7.2.ebuild,v 
1.1 2015/07/09 07:47:28 idella4 Exp $

EAPI=5

# Still appears to not support >=py3.3
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )

inherit distutils-r1 vcs-snapshot

DESCRIPTION="A more pythonic replacement for the unittest module and nose"
HOMEPAGE="https://github.com/Yelp/testify http://pypi.python.org/pypi/testify/";
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}]
        dev-python/sqlalchemy[${PYTHON_USEDEP}]
        dev-python/mock[${PYTHON_USEDEP}]
        www-servers/tornado[${PYTHON_USEDEP}]
        >=dev-python/six-1.7.3[${PYTHON_USEDEP}]"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
        test? ( ${RDEPEND} )"

python_prepare_all() {
        # Correct typo in setup.py
        sed -e 's:mock,:mock:' -i setup.py || die

        # Correct use of local importing in pertinent test_ files
        sed -e s':from .test:from test:' \
                -i test/test_runner_test.py || die

        sed -e s':from .discovery:from discovery:' \
                -i test/test_runner_server_test.py || die

        sed -e s':from .test:from test:' \
                -i test/test_runner_server_test.py || die

        distutils-r1_python_prepare_all
}

python_test() {
        einfo; einfo "Output reporting exceptions \"ImportError: No module 
named <module>\""
        einfo "are instances of exceptions expected to be raised, similar to 
xfails by nose"; einfo""
        for test in test/test_*_test.py;
        do
                "${PYTHON}" $test || die "test $test failed under ${EPYTHON}"
        done
}




Reply via email to