diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/vcrpy | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/vcrpy')
| -rw-r--r-- | dev-python/vcrpy/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/vcrpy/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/vcrpy/vcrpy-8.1.1.ebuild | 63 |
3 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/vcrpy/Manifest b/dev-python/vcrpy/Manifest new file mode 100644 index 000000000000..b2bca6609420 --- /dev/null +++ b/dev-python/vcrpy/Manifest @@ -0,0 +1 @@ +DIST vcrpy-8.1.1.gh.tar.gz 339641 BLAKE2B 140678b9d8ba38ac6c3492fcfe35ffaa9db17b9e07d52554466a84b5bf0ddb7d932eab8d009f20dd1e74722cf56c330b6bcb3c58245dac04613f480aca8586e2 SHA512 3596c1ca34dc9f9f461579e9f4ec64395d028abd8180388af664078a0cb9dd557aee3b5a654ff6873b63969865f9ac3c6e021ba1ac302c11def090d873ae5bf2 diff --git a/dev-python/vcrpy/metadata.xml b/dev-python/vcrpy/metadata.xml new file mode 100644 index 000000000000..5e95859f915a --- /dev/null +++ b/dev-python/vcrpy/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/vcrpy/vcrpy-8.1.1.ebuild b/dev-python/vcrpy/vcrpy-8.1.1.ebuild new file mode 100644 index 000000000000..941be55c8887 --- /dev/null +++ b/dev-python/vcrpy/vcrpy-8.1.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..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' +} |
