diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-12-09 07:29:59 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-12-09 07:31:09 +0100 |
| commit | 400e204ba0e834ac349a4db5cfb7c1a3f56dc526 (patch) | |
| tree | f51fc9a293ce3770986d2e54fcf4f9fb73f3552a /dev-python | |
| parent | 09ed557733550f2203cc6d4ed90833cc6f8f5573 (diff) | |
| download | gentoo-400e204ba0e834ac349a4db5cfb7c1a3f56dc526.tar.gz gentoo-400e204ba0e834ac349a4db5cfb7c1a3f56dc526.tar.bz2 gentoo-400e204ba0e834ac349a4db5cfb7c1a3f56dc526.zip | |
dev-python/vcrpy: Bump to 8.1.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/vcrpy/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/vcrpy/vcrpy-8.1.0.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/vcrpy/Manifest b/dev-python/vcrpy/Manifest index 2a1f13b1f391..5f4a5561c2b8 100644 --- a/dev-python/vcrpy/Manifest +++ b/dev-python/vcrpy/Manifest @@ -1,2 +1,3 @@ DIST vcrpy-7.0.0.gh.tar.gz 339068 BLAKE2B 15ae3cdfa3ba6755c0d7b2a31b91a4465bd603a80ee2900207181ba95dca4b863d16cf44ae98b7cac35bd312daaa95ca882a2a9d75e46e2a48b788e7bf82ab51 SHA512 6e82f56adddc5b5e3d56c261e612af5a66daed6a3485dfc082be235e95901ceaae9aa83bab96cef19d8fbe35c27953b4b101fea702fd3a44cbe578c926990d87 DIST vcrpy-8.0.0.gh.tar.gz 339334 BLAKE2B 5f3d6b4fe441b9e3f399db80a7f9f0a06c282e574d6c4689a6601b20a1d956c766c9bb83c7a24466e73066e99b873fbdab876332299961a4a3c14841973c7c55 SHA512 538e72148c74ccf0d2bf95e893e0a9c99d394446ce50c15bfc52ed96dd82dcec6edfaf5bf5152179061ff220636b73a28d5e9f195d7cd38ccdd7c3fdad07822e +DIST vcrpy-8.1.0.gh.tar.gz 339954 BLAKE2B bef251131a88e0d6fefbddbc78fedb4b6a9a3f21bf5b902fbf1d28746ee1d0b842adb8e3ccf7e437259c8be3e95260bca838e5b2215760873f122956c083dcc1 SHA512 47d78f88d20bb52a511af237a5e925797a11f36406f4e24d4faa5d612834fca89f944f6cfa1ce833822608d40252dad7f4d4624d8bab7ed58b63338288662612 diff --git a/dev-python/vcrpy/vcrpy-8.1.0.ebuild b/dev-python/vcrpy/vcrpy-8.1.0.ebuild new file mode 100644 index 000000000000..1c9c9c75c71e --- /dev/null +++ b/dev-python/vcrpy/vcrpy-8.1.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) + +inherit distutils-r1 + +DESCRIPTION="Automatically mock your HTTP interactions to simplify and speed up testing" +HOMEPAGE=" + https://github.com/kevin1024/vcrpy/ + https://pypi.org/project/vcrpy/ +" +SRC_URI=" + https://github.com/kevin1024/vcrpy/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + dev-python/pyyaml[${PYTHON_USEDEP}] + >=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/wrapt[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-httpbin ) +EPYTEST_RERUNS=5 +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # these tests are failing with recent dev-python/werkzeug; losely related: + # https://github.com/kevin1024/vcrpy/issues/645 + tests/integration/test_record_mode.py::test_new_episodes_record_mode_two_times + tests/integration/test_urllib2.py::test_random_body + tests/integration/test_urllib2.py::test_multiple_requests + # Internet + "tests/integration/test_urllib3.py::test_post[https]" + ) + + local EPYTEST_IGNORE=( + # requires boto3 + tests/integration/test_boto3.py + # Internet + tests/integration/test_tornado.py + tests/integration/test_aiohttp.py + ) + + local -x REQUESTS_CA_BUNDLE=$("${EPYTHON}" -m pytest_httpbin.certs) + epytest -m 'not online' +} |
