diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/httpretty |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/httpretty')
-rw-r--r-- | dev-python/httpretty/Manifest | 19 | ||||
-rw-r--r-- | dev-python/httpretty/files/httpretty-0.7.0-deps.patch | 68 | ||||
-rw-r--r-- | dev-python/httpretty/httpretty-0.7.0.ebuild | 50 | ||||
-rw-r--r-- | dev-python/httpretty/httpretty-0.7.1.ebuild | 46 | ||||
-rw-r--r-- | dev-python/httpretty/httpretty-0.8.0-r1.ebuild | 65 | ||||
-rw-r--r-- | dev-python/httpretty/httpretty-0.8.0.ebuild | 45 | ||||
-rw-r--r-- | dev-python/httpretty/httpretty-0.8.10.ebuild | 65 | ||||
-rw-r--r-- | dev-python/httpretty/httpretty-0.8.12.ebuild | 68 | ||||
-rw-r--r-- | dev-python/httpretty/httpretty-0.8.14.ebuild | 68 | ||||
-rw-r--r-- | dev-python/httpretty/httpretty-0.8.6.ebuild | 65 | ||||
-rw-r--r-- | dev-python/httpretty/metadata.xml | 12 |
11 files changed, 571 insertions, 0 deletions
diff --git a/dev-python/httpretty/Manifest b/dev-python/httpretty/Manifest new file mode 100644 index 000000000000..f42148a61850 --- /dev/null +++ b/dev-python/httpretty/Manifest @@ -0,0 +1,19 @@ +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 +DIST httpretty-0.7.1.tar.gz 28394 SHA256 a0f61cd3fbdffd28a556f8fd5eff703ad3c5c76cf0c39ab8bc136f38d0a71857 SHA512 53b6f063e0e7863fa77aad1eebb0ad3078528bc97d26df80a3c6491c42b9a9008080da35bbb1e9372674c996f25e5109c84b48a2a6d9f0de5b7c53331bdad857 WHIRLPOOL 2112692eeaa034f6afa3b7ef76aa557f3211b0f9db9178369446148b7c1d8eb6292f51a47c767d168222a7d40ed66bfefd1557bbb1c9ee3c5394e1c524861e4b +DIST httpretty-0.8.0.tar.gz 34291 SHA256 e5512b38ad3bfb9f7d275c957b4a7eddc69e4b3a749e3b62a984c86fb6ab329b SHA512 0c6193c488a27345b3d98cc6a62e8933b67828b7335700367b28cf328ef86ff2342056bada84ca631d6acc5650b7b456e80d85d8099e873f07cd41140c481650 WHIRLPOOL f828e84fddc6e4ab9671a9cd33da6b0f2b4053fc3368e3119ed5d7410cde125486aaae8bcf1cf4eab3a641af48dda7c6531c231f0d59c36d65f1c3d173e8969f +DIST httpretty-0.8.10.tar.gz 41741 SHA256 474a72722d66841f0e59cee285d837e1c6263be5be7bf2f8e824fc849a99adda SHA512 5bc734a89c45daa746551ef7d150c02bf6d9cddf1bc5426a8800d2241bb5bf8a834d2736fd9a4846ce150747d9c2064686a3ed63e97e5f131778d834956a9107 WHIRLPOOL 33fc4c025176c9d3493f8efe67f24db90d2c799536a949d490be4d9c11918190846d2612c6b09e6e000430a70f0e54b9bac87261cae62e5ba8ef558251f2bc3b +DIST httpretty-0.8.12.tar.gz 43396 SHA256 0fb1c892c6161110c90b93096fe38ce1445ab484b6796f366e7af2cc7d37a9c1 SHA512 1d1cbc2fd56c4aa8c2ba1e5bdb6d56db57a74f73028ebeab141f93d55eaac4a46a19c66148435e45c91d21a561ecaa6100cbe1ac0dbb65b2bdf2c8551b99a523 WHIRLPOOL de6c283eca878b6b8f6d35317c36c3f798f24259d911f241f99c33ebf8d83cfd38ba47099324029905d2e7531c827b4b44fa2704a43d5802ee76dc1992ed82dc +DIST httpretty-0.8.14.tar.gz 43574 SHA256 83c176bbac9d68a45a5cca54f2d5be7e6b16a063adf6f334e7fd0eee272e976e SHA512 5adab6450e8360cc21bab4136f64cd11757b9f292c7e27980fe2561f3e705baf4f0211b9e6ff4ec9ba96a788a6c5b5b1d26657972b67423c9c25491927b0884b WHIRLPOOL 356e8e4ffe5ce3ec65d424826588838cf30496af752c9cfb2a08cd950228a6623afb95b98c7daa600f6c95525875d130b6ce6ddacaa50aff8a98c03ef177aaff +DIST httpretty-0.8.6.tar.gz 40815 SHA256 36bd574d289ee5ad781e28abb1f9cb6af696c27f13200769caf48a23e42f4938 SHA512 bd5d0b1a33b52ae3d0e09673429e771ce582795bf58d38b34d4df39f74b377ec199d720fa061a84b64175b6ba67a91bdb35c242b4fd754627d2744cb8b33b313 WHIRLPOOL 0803c822bfff000c7bc5630f29ca08232e50a1a8786122179471c84d5630281e8e2a746f820b027f6357eee77b8ece46275cb1b1cf25d957a5e785c6c9220d5b +EBUILD httpretty-0.7.0.ebuild 1397 SHA256 803331ddcbcad927a2b4bfcffa04d220dcd14d30a0d0132fa8ed421630cbadcc SHA512 a99cbc6ed739e133a6d812f267c0aca45c3298ce0aa0a1682cb30d35bd6f3ba83fd49f56b2f4ded0db0ddde56f2b46723647e08fe444098c3affca8f6a3ffbcc WHIRLPOOL a45c9d391b198d488547d78342afe6d960c97adb3562fc0df6795f54ef23924859dbb05f328f6eb3b189df88e8d58f182b846f025c911f7c73e5bf5c87c7629d +EBUILD httpretty-0.7.1.ebuild 1268 SHA256 a897a9d66bfdecbb0d72762ed529bea5ba7a2313a09c1886b60f6806146db55b SHA512 f5ee3a5cbedd31ada8785bb9cf8763c29537b543819b0f77c99fd324fd0e952a832151b7edf0b53f05da03f736655b8aeff0cfb41e3eca1c9cf46d83e5c72430 WHIRLPOOL a87d3207cf359fd26ff1cdd06e7a7e8e4406634b407a50fb4c6deed37d77ce9479718ed36ee26ce6cc4b828ff8c9d52c48b953f9cb18d83e47ffba5f701bb0d6 +EBUILD httpretty-0.8.0-r1.ebuild 2309 SHA256 1351133673a195d41b2d173bc0777cf18d4d9f20e67e548b9290fd17838e01a2 SHA512 d36021d2470c4410802341ea39c48ef0c3a75a5d998e597c48374dc992bac07839ce17fd80fdd125a5250f90179928c1595257b2fbf270afca134654ce043311 WHIRLPOOL 812a580be0753923de13cb1e8b1644b83d400b96992073314c6077e853e7d073adeec82e7dd989fd98936a1ff989cd47a100e6b4c65b300bb9f4e4635119464c +EBUILD httpretty-0.8.0.ebuild 1223 SHA256 d50d0f25cb6135a86ada747cd814997b2b8140fe7b9df3763ab230ecb07cfe38 SHA512 8f3eef3205c7ed4d1165d6c0e389a4c9aad75260330f26828cdb69de83ac4f9db0441a70801b32064c63678ebc1f20aff9863e3714c161a2e7ff5f943d605e91 WHIRLPOOL 85c083a03f9e98ce1c3896a11b810670b3a75dc272399e34cc3f610e9303637c48527de516e9ff449c7829290959aff346270fb9be2e8da9221b193f046fe186 +EBUILD httpretty-0.8.10.ebuild 2307 SHA256 6c52e194c07eebb72c3a2124663451ba78d5b6f7defc90de644c62c80ac5638a SHA512 ba89125cdbd1c277ae523e6052b9cf4e94cc8c879e755c5d01e30cf074cbe612626b74f07dab7814b0f6bd0f92b625a32526b28e23ecccc05805d3ad1fe94092 WHIRLPOOL 4f5a7e14bedab395e8663f08ced8d25b36b76f46941976878b70f8eba9d8a5694b728dd173f8e03848627bf5264d166fb9877d444369f86b73cce511ae30556d +EBUILD httpretty-0.8.12.ebuild 2321 SHA256 6b0002d1eaf0d2c84230356a6fe41aed2b50dc803f85d4c363e83e242636d4ae SHA512 b283fcb17cfc8468035ab28acb5b6cb117634ea14f8557c06f3a0cc6485f87b89f17ca0bae3db6eb019a82583299f2d5c0a65b67e26b9b44964671e25ca36bfe WHIRLPOOL 763fa66dff92501ac376652c85ad23ace1b9546cdca187e6b5fc210293e1771eeca40324b7f3340b16c30453ae0cbf71c8e15bcf4eb868b6d2216c0ab264412b +EBUILD httpretty-0.8.14.ebuild 2313 SHA256 58f1e78995de70c15fd1bb5b45b0f794e5a075c78a6795ceace2175c4b45d097 SHA512 28c889079832baac7452bb4e85f86a87f812a0c5b822c32aa882c792210a4cda06a0361113b7a37113bebdb02f79cd5f5df5d8619f500b1dd8fb2181ba6ca70d WHIRLPOOL 62d09b87cc5b0a22b622610a995cda4fec8afc84b992651fe5d3c97916989ef9dea9bb7dd913c8e35ab244ff8668fb5e24665f7671c72db3741971b8c905296d +EBUILD httpretty-0.8.6.ebuild 2330 SHA256 a262be65b0fe1b566cb1cd508a5b8858441cb850f47889155ef8e0f267770ddf SHA512 fb4ea0ef4bddd1fbafde0126f91c8efc4024c267a633f0f378143e93ec3b054f93f65ec689713674351b35b43fd3b26e570d3196023c57a5a142100eed258293 WHIRLPOOL 1af0395398bb560a0a6ac2906d099002591551e1294c46589737afd040bc83b920ba252384b161b7bc9f7eda592fa06cc03a8aa82bc8c9edbc19239b3bbe775a +MISC ChangeLog 4529 SHA256 8594c6f9e163e93d5a624d71f56e26070bf1ee25e99ae20bb5eb9c2a6961f149 SHA512 fe9ce30ee403dcc91a3be64fcc64fa09bd99cb85244764ee1097f39977f78172315d4a6d51be6ff834d65a50451033e7f0825f5c6695be535ba22347469d3d7a WHIRLPOOL 1028193c5cb4db91b107508342d174f1dd47dcb453196c4d0d8691d1677724d5369d7829672372491ec28037ffdc49e08eac295625210190b34db664a7bbd550 +MISC ChangeLog-2015 2102 SHA256 51012848347c5a436f6591f7f49eec09cd8611efc7cc6c28580116090921c972 SHA512 715e01f784891211364feb1df744346b1c7da48befc9291b5e11f02cd593be7497ab906042d80bb10e9e986ffbc8314ed0310fd9cac46958542ac7551bbc9673 WHIRLPOOL b400d22d749685dab9a00334975e201f8a0c4eb6a82c379080b8774670d0acd9ed1d799d026b483a9257c675c0d46533c0eca4cdc2cc680f1f17e2b702bca668 +MISC metadata.xml 393 SHA256 582b1c983af0b7976d2a6440b1d6a9379a5b77d703a363ab122803e76a1455bb SHA512 79c7b3c101043ed36490f7b543f191d79e8fc3b2d9830ea44999e7e8018e6d1fcbe73915fb2f1adff9e6110404467bb98786aa6091fdf751021a995f0ef6f483 WHIRLPOOL f493fa94cf09353ffbd970fdbc193c24e2231203015da559c60d283aa1ff2b3da1396b0c588263886c56a8d1043187e418ce55c1464fa6bcfe241796ebee43af 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..eec8bd8fc2d1 --- /dev/null +++ b/dev-python/httpretty/httpretty-0.7.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://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? ( ${RDEPEND} )" + +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/unit \ + -e test_recording_calls \ + -e test_playing_calls \ + -e test_callback_setting_headers_and_status_response \ + -e test_streaming_responses \ + tests/functional || die "Tests failed under ${EPYTHON}" + rm -rf tests/ "${BUILD_DIR}"/lib/tests/ || die +} diff --git a/dev-python/httpretty/httpretty-0.7.1.ebuild b/dev-python/httpretty/httpretty-0.7.1.ebuild new file mode 100644 index 000000000000..9913d5128b50 --- /dev/null +++ b/dev-python/httpretty/httpretty-0.7.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://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}] + " +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( ${RDEPEND} )" + +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/unit \ + -e test_recording_calls \ + -e test_playing_calls \ + -e test_callback_setting_headers_and_status_response \ + tests/functional || die "Tests failed under ${EPYTHON}" + rm -rf tests/ "${BUILD_DIR}"/lib/tests/ || die +} diff --git a/dev-python/httpretty/httpretty-0.8.0-r1.ebuild b/dev-python/httpretty/httpretty-0.8.0-r1.ebuild new file mode 100644 index 000000000000..e74338ab415c --- /dev/null +++ b/dev-python/httpretty/httpretty-0.8.0-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://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() { + # 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 +} diff --git a/dev-python/httpretty/httpretty-0.8.0.ebuild b/dev-python/httpretty/httpretty-0.8.0.ebuild new file mode 100644 index 000000000000..5ed9516eff5b --- /dev/null +++ b/dev-python/httpretty/httpretty-0.8.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_4 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://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_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/unit \ + -e test_recording_calls \ + -e test_playing_calls \ + -e test_callback_setting_headers_and_status_response \ + tests/functional || die "Tests failed under ${EPYTHON}" + rm -rf tests/ "${BUILD_DIR}"/lib/tests/ || die +} diff --git a/dev-python/httpretty/httpretty-0.8.10.ebuild b/dev-python/httpretty/httpretty-0.8.10.ebuild new file mode 100644 index 000000000000..d8f9443c6f99 --- /dev/null +++ b/dev-python/httpretty/httpretty-0.8.10.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://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() { + # 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 +} diff --git a/dev-python/httpretty/httpretty-0.8.12.ebuild b/dev-python/httpretty/httpretty-0.8.12.ebuild new file mode 100644 index 000000000000..f0dcd0326bbe --- /dev/null +++ b/dev-python/httpretty/httpretty-0.8.12.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://github.com/gabrielfalcao/httpretty" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +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() { + # 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 +} diff --git a/dev-python/httpretty/httpretty-0.8.14.ebuild b/dev-python/httpretty/httpretty-0.8.14.ebuild new file mode 100644 index 000000000000..9c545c3eee1c --- /dev/null +++ b/dev-python/httpretty/httpretty-0.8.14.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://github.com/gabrielfalcao/httpretty" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="amd64 ppc64 x86" +IUSE="test" + +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() { + # 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 python_is_python3; then + einfo "python3* not adequately supported by th package" + 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 +} diff --git a/dev-python/httpretty/httpretty-0.8.6.ebuild b/dev-python/httpretty/httpretty-0.8.6.ebuild new file mode 100644 index 000000000000..f49200316958 --- /dev/null +++ b/dev-python/httpretty/httpretty-0.8.6.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP client mock for Python" +HOMEPAGE="https://github.com/gabrielfalcao/httpretty" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +KEYWORDS="~amd64 ~arm64 ~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() { + # 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 +} diff --git a/dev-python/httpretty/metadata.xml b/dev-python/httpretty/metadata.xml new file mode 100644 index 000000000000..87a60423fd7d --- /dev/null +++ b/dev-python/httpretty/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>openstack@gentoo.org</email> + <name>Openstack</name> + </maintainer> + <upstream> + <remote-id type="pypi">httpretty</remote-id> + <remote-id type="github">gabrielfalcao/httpretty</remote-id> + </upstream> +</pkgmetadata> |