idella4     15/03/17 08:26:22

  Modified:             ChangeLog
  Added:                httpretty-0.8.0-r1.ebuild
  Log:
  revbump; correction to new dep ipdb, remove removal of tests folder and whole 
python_prepare_all phase, set DISTUTILS_IN_SOURCE_BUILD to manage rogue 
testsuite, cite new bug filed upstream, re-write test phase to match, all wrt 
Bug 532106
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
0xB8072B0D)

Revision  Changes    Path
1.9                  dev-python/httpretty/ChangeLog

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

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/httpretty/ChangeLog,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ChangeLog   9 Mar 2015 00:03:52 -0000       1.8
+++ ChangeLog   17 Mar 2015 08:26:22 -0000      1.9
@@ -1,6 +1,14 @@
 # ChangeLog for dev-python/httpretty
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/httpretty/ChangeLog,v 1.8 
2015/03/09 00:03:52 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/httpretty/ChangeLog,v 1.9 
2015/03/17 08:26:22 idella4 Exp $
+
+*httpretty-0.8.0-r1 (17 Mar 2015)
+
+  17 Mar 2015; Ian Delaney <[email protected]> +httpretty-0.8.0-r1.ebuild:
+  revbump; correction to new dep ipdb, remove removal of tests folder and whole
+  python_prepare_all phase, set DISTUTILS_IN_SOURCE_BUILD to manage rogue
+  testsuite, cite new bug filed upstream, re-write test phase to match, all wrt
+  Bug 532106
 
   09 Mar 2015; Pacho Ramos <[email protected]> httpretty-0.8.0.ebuild:
   x86 stable, bug 540290



1.1                  dev-python/httpretty/httpretty-0.8.0-r1.ebuild

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

Index: httpretty-0.8.0-r1.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/dev-python/httpretty/httpretty-0.8.0-r1.ebuild,v 1.1 
2015/03/17 08:26:22 idella4 Exp $

EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )

inherit distutils-r1

DESCRIPTION="HTTP client mock for Python"
HOMEPAGE="http://github.com/gabrielfalcao/httpretty";
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

KEYWORDS="~amd64 ~x86"
IUSE="test"
LICENSE="MIT"
SLOT="0"

RDEPEND="dev-python/urllib3[${PYTHON_USEDEP}]
        "
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
        test? ( >=dev-python/coverage-3.5[${PYTHON_USEDEP}]
                >=dev-python/nose-1.2[${PYTHON_USEDEP}]
                >=dev-python/mock-1.0[${PYTHON_USEDEP}]
                dev-python/sure[${PYTHON_USEDEP}]
                dev-python/httplib2[${PYTHON_USEDEP}]
                >=dev-python/requests-1.1[${PYTHON_USEDEP}]
                >=www-servers/tornado-2.2[${PYTHON_USEDEP}]
                dev-python/ipdb[${PYTHON_USEDEP}] )"

#Required for test phase
DISTUTILS_IN_SOURCE_BUILD=1

python_test() {
        echo $"${BUILD_DIR}" && die "ded"

        # https://github.com/gabrielfalcao/HTTPretty/issues/125, still occur
        # py3.4 hangs on many tests and is deemed underdone
        # Upstream does not make it clear whether py3.4 is sctually tested and 
supported.
        # python2.7 has substantial failure in 
tests/functional/test_requests.py and is removed.
        # Some tests excluded attempt connection to the network
        # On testing in the state below, py2.7 still has a tally of FAILED 
(failures=5)
        # that occur within the folder tests/unit which upstream should address.
        # https://github.com/gabrielfalcao/HTTPretty/issues/236 Bug #532106

        if [[ "${EPYTHON}" == python3.4 ]]; then
                einfo "python3.4 not adequately supported in testsuite"
        elif [[ "${EPYTHON}" == python2.7 ]]; then
        rm -f tests/functional/test_requests.py || die
                nosetests -e test_recording_calls \
                        -e test_playing_calls \
                        -e test_callback_setting_headers_and_status_response \
                        -e test_httpretty_bypasses_when_disabled \
                        -e test_using_httpretty_with_other_tcp_protocols \
                        tests/unit \
                        tests/functional || die "Tests failed under python2.7"
        else
                nosetests -e test_recording_calls \
                        -e test_playing_calls \
                        -e test_callback_setting_headers_and_status_response \
                        -e test_httpretty_bypasses_when_disabled \
                        -e test_using_httpretty_with_other_tcp_protocols \
                        tests/unit \
                        tests/functional || die "Tests failed under python3.3"
        fi

        rm -rf "${BUILD_DIR}"/../tests/ || die
}




Reply via email to