From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-python/vcrpy/Manifest | 8 ++++ .../vcrpy/files/vcrpy-skip-network-tests.patch | 21 ++++++++++ dev-python/vcrpy/metadata.xml | 12 ++++++ dev-python/vcrpy/vcrpy-1.10.3.ebuild | 40 +++++++++++++++++++ dev-python/vcrpy/vcrpy-1.11.1.ebuild | 45 ++++++++++++++++++++++ dev-python/vcrpy/vcrpy-1.12.0.ebuild | 45 ++++++++++++++++++++++ 6 files changed, 171 insertions(+) create mode 100644 dev-python/vcrpy/Manifest create mode 100644 dev-python/vcrpy/files/vcrpy-skip-network-tests.patch create mode 100644 dev-python/vcrpy/metadata.xml create mode 100644 dev-python/vcrpy/vcrpy-1.10.3.ebuild create mode 100644 dev-python/vcrpy/vcrpy-1.11.1.ebuild create mode 100644 dev-python/vcrpy/vcrpy-1.12.0.ebuild (limited to 'dev-python/vcrpy') diff --git a/dev-python/vcrpy/Manifest b/dev-python/vcrpy/Manifest new file mode 100644 index 000000000000..c04b6dd180ce --- /dev/null +++ b/dev-python/vcrpy/Manifest @@ -0,0 +1,8 @@ +AUX vcrpy-skip-network-tests.patch 772 BLAKE2B d98c50fde4e3df3d4e62285e9136061b877e632153c6a6ed35fc84734c3f2d744ee030930253655954bd25d334f87c1e9518fa1fd86a56b7c7b606b7ef7aa11c SHA512 90cd2cc3a89a7019b88687a54016deea9dd60cd1d80f0511f58d25efa7ad24ecaedf8e1187e3455bd7cdd88a4506787867fb04027e638ab66672cfd809ba6787 +DIST vcrpy-1.10.3.tar.gz 61804 BLAKE2B 58ef423cb7a7c059cf7dc863565420be6829e6b692becfcf8a38b94121265aab832d77deb04cd1c3a622df7bd9bdf1540fc74f63c0f3f85373536cd35c23a01e SHA512 976f3d9b58025ab5c3a8a666138fbbadccaf8612edea63ac4fbf307d55888eb688bf27dd0f24b0d2c5528c951ced533a52cf13c33bfb32d7e89f241ff508018d +DIST vcrpy-1.11.1.tar.gz 63122 BLAKE2B da0fabb1eb342eb268923bcf433ac108d06fc111714834e99d9364358064ad0814bff1463f49bea60c59fe901c46fc8b78c4129e9bb4ab6736266f18b3bdf272 SHA512 d883b87d5b3017843dfc2e33241953ada27d50ffda4936ba4326a392acb9c7667474abd054d6e44b0208096cd96b68e87ec9780c0d6fab77369cc4e517617395 +DIST vcrpy-1.12.0.tar.gz 326731 BLAKE2B a0fd5aa3fea1bef336f0864a6d89e7025d2394f89af23ac9a3ed61430c85b9a46584c528398a03debcce646767bd85328360513476bc89ca067e705767fe85fd SHA512 c47d50cd399fa11eb6fd1d210b056ef9768e501799a9774f7338370177754e35b9a9ee43ff5cb7f1f43073624f9011cc1ca230dbdf317c1bccd0ec6b506c61e0 +EBUILD vcrpy-1.10.3.ebuild 1131 BLAKE2B 76b16313a059e8681e9d04e4aa3ae15e99518edfcb5ea06d866d6fbd663f7bbb407049fe13048cefcf6381e51ae738fff11a3f9fba49d3daa76b742bf1232d07 SHA512 2aa38af73b16d7879e4859a8450f24eeafff37cd4dd3f398614bae09c599d681fcf4ef6a4940bd7f94c5297118a04086312464ac5f5cf5bb295166155bab704f +EBUILD vcrpy-1.11.1.ebuild 1261 BLAKE2B 1a96f654860007bed6d8534ad1e41b042693a49fafe8c86925cd72527f2fdff44f2c059d5cf9c2090a6c626ece35f0f74034f3b780d2f547c658dd17eb9f68b5 SHA512 1d5192e6989643d456935ef8f4bbe3b2b368614e7218408f5f2d5b10f861331c6c33b44b20c19d7f157ce56569019a2ac82e0749863f2dce08b4d73b280e6156 +EBUILD vcrpy-1.12.0.ebuild 1265 BLAKE2B 2d2ec361dfc2bd896af59e07f5c5bf80f25b74c2ec2d91d636fbc71e20b73a263bca8acd2fee2ffcc6baa1c162fc153ee72cb6571cd559b9a84643821d0f3a9f SHA512 ee5002c6e939217e978b8092ce9df2c78561283e132af0e8c040f1eb941ca5be6a11d36fd947ef480d4d16558a7220c021616592fcf694f4511fc17af3bd9054 +MISC metadata.xml 363 BLAKE2B e447766d191bb1c155e27a7b892fd38df143e2bb0f45be8b635df6bcef92f6f292db010b22659d0e699f3f333f84d0be24d3c9a293e1a2f00f641e21a356daa3 SHA512 7cb4c7132da46b1a34425492476204519a02b71643cdb6dffbda39281ada4a55b45577707076783add52639ff5993f0c90c48713b94ca1230eb3559ad1207804 diff --git a/dev-python/vcrpy/files/vcrpy-skip-network-tests.patch b/dev-python/vcrpy/files/vcrpy-skip-network-tests.patch new file mode 100644 index 000000000000..a1f00aa77855 --- /dev/null +++ b/dev-python/vcrpy/files/vcrpy-skip-network-tests.patch @@ -0,0 +1,21 @@ +diff --git a/tests/unit/test_stubs.py b/tests/unit/test_stubs.py +index 7eb0684..a4bc7a1 100644 +--- a/tests/unit/test_stubs.py ++++ b/tests/unit/test_stubs.py +@@ -1,7 +1,7 @@ + from vcr.stubs import VCRHTTPSConnection + from vcr.compat import mock + from vcr.cassette import Cassette +- ++import pytest + + class TestVCRConnection(object): + +@@ -11,6 +11,7 @@ class TestVCRConnection(object): + assert vcr_connection.real_connection.ssl_version == 'example_ssl_version' + + @mock.patch('vcr.cassette.Cassette.can_play_response_for', return_value=False) ++ @pytest.mark.skip('requires network access') + def testing_connect(*args): + vcr_connection = VCRHTTPSConnection('www.google.com') + vcr_connection.cassette = Cassette('test', record_mode='all') diff --git a/dev-python/vcrpy/metadata.xml b/dev-python/vcrpy/metadata.xml new file mode 100644 index 000000000000..625f4389c4af --- /dev/null +++ b/dev-python/vcrpy/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + kevin1024/vcrpy + vcrpy + + diff --git a/dev-python/vcrpy/vcrpy-1.10.3.ebuild b/dev-python/vcrpy/vcrpy-1.10.3.ebuild new file mode 100644 index 000000000000..8942009560a2 --- /dev/null +++ b/dev-python/vcrpy/vcrpy-1.10.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Automatically mock your HTTP interactions to simplify and speed up testing" +HOMEPAGE="https://github.com/kevin1024/vcrpy" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +#SRC_URI="https://github.com/kevin1024/vcrpy/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +RDEPEND=" + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + >=dev-python/six-1.5[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/wrapt[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/contextlib2[${PYTHON_USEDEP}]' python2_7) + " +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + )" + +python_test() { + py.test -vv -x tests/unit || die +} diff --git a/dev-python/vcrpy/vcrpy-1.11.1.ebuild b/dev-python/vcrpy/vcrpy-1.11.1.ebuild new file mode 100644 index 000000000000..a2b544635706 --- /dev/null +++ b/dev-python/vcrpy/vcrpy-1.11.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Automatically mock your HTTP interactions to simplify and speed up testing" +HOMEPAGE="https://github.com/kevin1024/vcrpy" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +#SRC_URI="https://github.com/kevin1024/vcrpy/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +RDEPEND=" + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + >=dev-python/six-1.5[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/wrapt[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/contextlib2[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/yarl[${PYTHON_USEDEP}]' python3*) + " +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + )" + +PATCHES=( + "${FILESDIR}"/vcrpy-skip-network-tests.patch +) + +python_test() { + py.test -vv -x tests/unit || die +} diff --git a/dev-python/vcrpy/vcrpy-1.12.0.ebuild b/dev-python/vcrpy/vcrpy-1.12.0.ebuild new file mode 100644 index 000000000000..2676c4109733 --- /dev/null +++ b/dev-python/vcrpy/vcrpy-1.12.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Automatically mock your HTTP interactions to simplify and speed up testing" +HOMEPAGE="https://github.com/kevin1024/vcrpy" +#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/kevin1024/vcrpy/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + >=dev-python/six-1.5[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/wrapt[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/contextlib2[${PYTHON_USEDEP}]' python2_7) + $(python_gen_cond_dep 'dev-python/yarl[${PYTHON_USEDEP}]' 'python3*') + " +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + )" + +PATCHES=( + "${FILESDIR}"/vcrpy-skip-network-tests.patch +) + +python_test() { + py.test -vv -x tests/unit || die +} -- cgit v1.2.3