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/pytest-mock | |
| 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/pytest-mock')
| -rw-r--r-- | dev-python/pytest-mock/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pytest-mock/metadata.xml | 9 | ||||
| -rw-r--r-- | dev-python/pytest-mock/pytest-mock-3.15.1.ebuild | 54 |
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/pytest-mock/Manifest b/dev-python/pytest-mock/Manifest new file mode 100644 index 000000000000..5a4c544d4f48 --- /dev/null +++ b/dev-python/pytest-mock/Manifest @@ -0,0 +1,2 @@ +DIST pytest_mock-3.15.1.tar.gz 34036 BLAKE2B bfd7a4ec32612b4a4351c43ff36e7a4ab053623a97842a701457d90b6a8bc8dbb731ded770f1605b881ada9b0255795a970f4dfed41cb550d17ca71ccbd8dd75 SHA512 1807446f2f1547459820d7b0b196d089d2fc574d5e017c4a0d318f5b430c12c83ef0a5593498425cc08972c4b77ce43cc935ee44e1ffef2887f7efbd5fe0d7cc +DIST pytest_mock-3.15.1.tar.gz.provenance 10055 BLAKE2B 158410280dd839301fceb807ba80c199d248efd38b643e5bed0938e041fcbe99e3a6f04cda0f1aa4b2ad226331ede1a2477425e6c477e636e371d4e54e33eb64 SHA512 356eddc3637f622b53ff7791474d82ff116b0ce16414b8ee5b595cd3dd08b32c266e5e133ce79281775f1826613fb5ed01643aa87abcbd816c3a178120a49198 diff --git a/dev-python/pytest-mock/metadata.xml b/dev-python/pytest-mock/metadata.xml new file mode 100644 index 000000000000..a92b8f4b06d0 --- /dev/null +++ b/dev-python/pytest-mock/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <stabilize-allarches /> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/pytest-mock/pytest-mock-3.15.1.ebuild b/dev-python/pytest-mock/pytest-mock-3.15.1.ebuild new file mode 100644 index 000000000000..c1ff501f00c2 --- /dev/null +++ b/dev-python/pytest-mock/pytest-mock-3.15.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_VERIFY_REPO=https://github.com/pytest-dev/pytest-mock +PYTHON_TESTED=( python3_{13..14} ) +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Thin-wrapper around the mock package for easier use with pytest" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-mock/ + https://pypi.org/project/pytest-mock/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/pytest-6.2.5[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + $(python_gen_cond_dep ' + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + ' "${PYTHON_TESTED[@]}") + ) +" + +python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + + local EPYTEST_PLUGINS=( "${PN}" pytest-asyncio ) + local EPYTEST_PLUGIN_LOAD_VIA_ENV=1 + local EPYTEST_DESELECT=() + + if has_version dev-python/mock; then + EPYTEST_DESELECT+=( + tests/test_pytest_mock.py::test_standalone_mock + ) + fi + + epytest --assert=plain +} |
