summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-12-02 10:24:08 +0000
committerIan Delaney <idella4@gentoo.org>2013-12-02 10:24:08 +0000
commitda45fecf11eaa229cf9eaed193720f6e9bd11309 (patch)
treefacad3f6640fccc0431ab24a1e8d9ef0fe4acefc /dev-python
parentVersion bump (bug 492262). (diff)
downloadgentoo-2-da45fecf11eaa229cf9eaed193720f6e9bd11309.tar.gz
gentoo-2-da45fecf11eaa229cf9eaed193720f6e9bd11309.tar.bz2
gentoo-2-da45fecf11eaa229cf9eaed193720f6e9bd11309.zip
new dep of openstack client package python-keystoneclient, ebuild prepared by me
(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/httpretty/ChangeLog10
-rw-r--r--dev-python/httpretty/Manifest4
-rw-r--r--dev-python/httpretty/files/httpretty-0.7.0-deps.patch68
-rw-r--r--dev-python/httpretty/httpretty-0.7.0.ebuild50
-rw-r--r--dev-python/httpretty/metadata.xml5
5 files changed, 137 insertions, 0 deletions
diff --git a/dev-python/httpretty/ChangeLog b/dev-python/httpretty/ChangeLog
new file mode 100644
index 000000000000..a9328995bd8e
--- /dev/null
+++ b/dev-python/httpretty/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-python/httpretty
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/httpretty/ChangeLog,v 1.1 2013/12/02 10:24:07 idella4 Exp $
+
+*httpretty-0.7.0 (02 Dec 2013)
+
+ 02 Dec 2013; Ian Delaney <idella4@gentoo.org>
+ +files/httpretty-0.7.0-deps.patch, +httpretty-0.7.0.ebuild, +metadata.xml:
+ new dep of openstack client package python-keystoneclient, ebuild prepared by
+ me
diff --git a/dev-python/httpretty/Manifest b/dev-python/httpretty/Manifest
new file mode 100644
index 000000000000..0ac87e8e460d
--- /dev/null
+++ b/dev-python/httpretty/Manifest
@@ -0,0 +1,4 @@
+AUX httpretty-0.7.0-deps.patch 2344 SHA256 f221f105ef6da02527a246c898083d7e52edbeaf5004165aec68937558d60b45 SHA512 d8c06d426966673d178969c8d0edb79e903ba89831a9942ba6788006d62e52a0302f306c40e1d171e39aaef03e75b73606b5a936babe50940b04025e7c46229c WHIRLPOOL 6c4f6782a676a6a6aeb090fefb277a56f7a1d19e636d99eb04f630d28d5c6fb4eca5a07a4699fc3b8b0de0961b74674cbe50fcde68d26202d3de84672eaf72f5
+DIST httpretty-0.7.0.tar.gz 28066 SHA256 a422a74fe0f35fbb644c9a3a0a4ccb7a7469a8f5bae2d7c807d35a7d149d3fa6 SHA512 9adfd906336aa0ac2c21be8b789eb2e57994f4aac719958fc657291d922fe28b1fcc60d9b39e0e616b6d8565adaecb8228df3a9d1428cc189372b1cc700f664e WHIRLPOOL 8aaa28f26d038ba198b19a31a7f9490e2c3882a9eaacd6b5ccee34cd5f03f745e0facd96853da1be00c7ae949f18cfd4e8f3f696b51f26ffd9b2c6063502976a
+EBUILD httpretty-0.7.0.ebuild 1378 SHA256 d650271e91dbff9f48acf89433a852960e1a99cddfd84b4379c8fb3640ebfbca SHA512 60a5eb2042654cf4ce5dccb52b22779065da9e35facf0d5607978a061846493ffa471ad863eca0408958655add5483c9ed96e546ffe337db1ea5065951bda826 WHIRLPOOL 65826d9928e50e704f59869def769e7e5a31a10f1dfaa981ee17ebf7653269a543ffcd9f91b36cc3f340dee700cb1c0e0b297d6f0c9a24950019c6c6b62453a0
+MISC metadata.xml 163 SHA256 b0cab84c52d3ee0149ad230fe3bd35b1452c372a7404586c62e251e428af3175 SHA512 89f1aa4dcc73e54f0b7fc8b49939e0cf47faa9d96682f95de2d3838f54e3e20b9a387c340dc4a865d75078cbc764679c414863b5b19a7d43b4e6de31fba6c529 WHIRLPOOL 9482649887fe0318efdcb80e74a3641779420c012d5ce752bfea12c1bab476f385f98c8f4c1090896cc5e0733aa60e1680c255105be14cb690784c8b4144d81f
diff --git a/dev-python/httpretty/files/httpretty-0.7.0-deps.patch b/dev-python/httpretty/files/httpretty-0.7.0-deps.patch
new file mode 100644
index 000000000000..26c6ebec4e5e
--- /dev/null
+++ b/dev-python/httpretty/files/httpretty-0.7.0-deps.patch
@@ -0,0 +1,68 @@
+rebased from https://github.com/jamielennox/HTTPretty/commit/3a7d5a04b2ed5cebc8e1fc14f706f5da7fc5162f
+diff -ur httpretty-0.7.0.orig/requirements.pip httpretty-0.7.0/requirements.pip
+--- requirements.pip 2013-10-02 12:44:47.000000000 +0800
++++ requirements.pip 2013-12-02 15:37:00.611977792 +0800
+@@ -1,12 +1,9 @@
+-argparse==1.2.1
+-coverage==3.5.3
+-httplib2==0.7.6
+-misaka==1.0.2
+-mock==1.0.1
+-nose==1.2.1
+-requests==1.1.0
+-steadymark==0.4.5
++coverage>=3.5
++httplib2
++mock>=1.0
++nose>=1.2
++requests>=1.1
+ sure>=1.2.1
+-tornado==2.4
+-tox==1.4.2
+-urllib3
+\ No newline at end of file
++tornado>=2.2
++tox>=1.4.2
++urllib3
+diff -ur httpretty-0.7.0.orig/setup.cfg httpretty-0.7.0/setup.cfg
+--- setup.cfg 2013-10-08 05:42:31.000000000 +0800
++++ setup.cfg 2013-12-02 15:40:34.331985437 +0800
+@@ -2,4 +2,9 @@
+ tag_build =
+ tag_date = 0
+ tag_svn_revision = 0
+-
++[nosetests]
++verbosity=2
++with-coverage=1
++cover-erase=1
++cover-package=httpretty
++cover-inclusive=1
+diff -ur httpretty-0.7.0.orig/setup.py httpretty-0.7.0/setup.py
+--- setup.py 2013-10-08 05:42:31.000000000 +0800
++++ setup.py 2013-12-02 15:42:26.467989448 +0800
+@@ -50,10 +50,11 @@
+ author_email='gabriel@nacaolivre.org',
+ url='http://github.com/gabrielfalcao/httpretty',
+ zip_safe=False,
+- packages=find_packages(HTTPRETTY_PATH, ('tests')),
++ packages=find_packages(),
+ tests_require=test_packages(),
+ install_requires=['urllib3'],
+ license='MIT',
++ test_suite='nose.collector',
+ classifiers=["Intended Audience :: Developers",
+ "License :: OSI Approved :: MIT License",
+ "Topic :: Software Development :: Testing"],
+diff -ur httpretty-0.7.0.orig/tests/functional/test_requests.py httpretty-0.7.0/tests/functional/test_requests.py
+--- tests/functional/test_requests.py 2013-10-08 05:42:31.000000000 +0800
++++ tests/functional/test_requests.py 2013-12-02 15:43:48.763992391 +0800
+@@ -698,7 +698,7 @@
+ response['response'].should.have.key("status").being.equal(200)
+ response['response'].should.have.key("body").being.an(unicode)
+ response['response'].should.have.key("headers").being.a(dict)
+- response['response']["headers"].should.have.key("server").being.equal("TornadoServer/2.4")
++ response['response']["headers"].should.have.key("server").being.equal("TornadoServer")
+
+
+ def test_playing_calls():
diff --git a/dev-python/httpretty/httpretty-0.7.0.ebuild b/dev-python/httpretty/httpretty-0.7.0.ebuild
new file mode 100644
index 000000000000..4387705b352d
--- /dev/null
+++ b/dev-python/httpretty/httpretty-0.7.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/httpretty/httpretty-0.7.0.ebuild,v 1.1 2013/12/02 10:24:07 idella4 Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+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}]
+ >=dev-python/coverage-3.5[${PYTHON_USEDEP}]
+ dev-python/httplib2[${PYTHON_USEDEP}]
+ >=dev-python/mock-1.0[${PYTHON_USEDEP}]
+ >=dev-python/nose-1.2[${PYTHON_USEDEP}]
+ >=dev-python/requests-1.1[${PYTHON_USEDEP}]
+ >=dev-python/steadymark-0.4.5[${PYTHON_USEDEP}]
+ >=dev-python/sure-1.2.1[${PYTHON_USEDEP}]
+ >=www-servers/tornado-2.2[${PYTHON_USEDEP}]
+ "
+# I believe we don't need unpackaged package markment
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/sure[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}"/${P}-deps.patch )
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+ if ! use test; then
+ rm -rf tests/
+ fi
+}
+
+python_test() {
+ # https://github.com/gabrielfalcao/HTTPretty/issues/125
+ nosetests tests \
+ -e test_recording_calls \
+ -e test_playing_calls \
+ -e test_callback_setting_headers_and_status_response \
+ || die "Tests failed under ${EPYTHON}"
+ rm -rf tests/ "${BUILD_DIR}"/lib/tests/ || die
+}
diff --git a/dev-python/httpretty/metadata.xml b/dev-python/httpretty/metadata.xml
new file mode 100644
index 000000000000..4677fb8fa71e
--- /dev/null
+++ b/dev-python/httpretty/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>openstack</herd>
+</pkgmetadata>