diff options
Diffstat (limited to 'dev-python/pytest-tap')
| -rw-r--r-- | dev-python/pytest-tap/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pytest-tap/files/pytest-tap-3.5-hatchling-wheel.patch | 70 | ||||
| -rw-r--r-- | dev-python/pytest-tap/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/pytest-tap/pytest-tap-3.5.ebuild | 34 |
4 files changed, 115 insertions, 0 deletions
diff --git a/dev-python/pytest-tap/Manifest b/dev-python/pytest-tap/Manifest new file mode 100644 index 000000000000..778000a5626e --- /dev/null +++ b/dev-python/pytest-tap/Manifest @@ -0,0 +1 @@ +DIST pytest-tap-3.5.gh.tar.gz 17237 BLAKE2B 7a665b81faa08f11bcdc21945e77f4c74372c40ba737c198ee7975de62842f123ccd3a3c1ee5e365c3c43b7f8404f391adf1c2c85fc4017d40f52ab14cc95bb3 SHA512 5227af603294a6f039bb4759859bbcb69629bf057f92c71e51472bce222740346e7c911e00bd0646abf1e6998259d4c4064e91db131c2672b3c9211df0836712 diff --git a/dev-python/pytest-tap/files/pytest-tap-3.5-hatchling-wheel.patch b/dev-python/pytest-tap/files/pytest-tap-3.5-hatchling-wheel.patch new file mode 100644 index 000000000000..dc7df6edd335 --- /dev/null +++ b/dev-python/pytest-tap/files/pytest-tap-3.5-hatchling-wheel.patch @@ -0,0 +1,70 @@ +https://github.com/python-tap/pytest-tap/commit/aba9dfa88c8736e96e6af6382b2688c919600050 + +From aba9dfa88c8736e96e6af6382b2688c919600050 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <cynerd@email.cz> +Date: Thu, 30 Oct 2025 03:24:39 +0100 +Subject: [PATCH] pyproject.toml: fix missing package i wheel (#105) + +* pyproject.toml: fix missing package i wheel + +The wheel was missing package due to it not being packaged. The +hatchling documentation specifies that packages should be set this way. + +The testing of this change in virtual environment: + + nobody@host:pytest-tap$ python3 -m venv env wheelfix+ + nobody@host:pytest-tap$ . ./env/bin/activate wheelfix+ + ((env) ) nobody@host:pytest-tap$ pip install . wheelfix+ + Processing /home/cynerd/src/pytest-tap + Installing build dependencies ... done + Getting requirements to build wheel ... done + Preparing metadata (pyproject.toml) ... done + Requirement already satisfied: pytest>=3.0 in /nix/store/094gpcj7d1z8wdvymhxvi2rns757vb2p-python3.12-pytest-8.3.5/lib/python3.12/site-packages (from pytest-tap==3.5) (8.3.5) + Requirement already satisfied: tap-py<4.0,>=3.2 in /nix/store/bmvj5dimxkphyrzwl0jyvi6blz8imqpn-python3.12-tap.py-3.2.1/lib/python3.12/site-packages (from pytest-tap==3.5) (3.2.1) + Requirement already satisfied: iniconfig in /nix/store/8bcr5c5m8d1359k52mwjdbqjw2rzwdgq-python3.12-iniconfig-2.1.0/lib/python3.12/site-packages (from pytest>=3.0->pytest-tap==3.5) (2.1.0) + Requirement already satisfied: packaging in /nix/store/wr2lp9ziysxbjbf5ww09a4k7ivvnxbc4-python3.12-packaging-24.2/lib/python3.12/site-packages (from pytest>=3.0->pytest-tap==3.5) (24.2) + Requirement already satisfied: pluggy<2,>=1.5 in /nix/store/fbbyfni2ccjw8r7rh7ww3x8ky1yk4hi7-python3.12-pluggy-1.5.0/lib/python3.12/site-packages (from pytest>=3.0->pytest-tap==3.5) (1.5.0) + Building wheels for collected packages: pytest-tap + Building wheel for pytest-tap (pyproject.toml) ... done + Created wheel for pytest-tap: filename=pytest_tap-3.5-py3-none-any.whl size=6543 sha256=6733459ec7272402507031361355d4820fd799659e4102568790d9e53b2863c0 + Stored in directory: /home/cynerd/.cache/pip/wheels/e4/ea/6f/0c79e4850b81f185670c0a561a2ebc457c7a0b4ee105c88476 + Successfully built pytest-tap + Installing collected packages: pytest-tap + Successfully installed pytest-tap-3.5 + + [notice] A new release of pip is available: 25.0.1 -> 25.1.1 + [notice] To update, run: pip install --upgrade pip + ((env) ) nobody@host:pytest-tap$ ls env/lib/python3.12/site-packages/pytest_tap/ wheelfix+ + __init__.py plugin.py + +The listed directory wasn't present before this change. + +* Remove sources entry from pyproject.toml + +This applies a similar fix to https://github.com/python-tap/tappy/pull/166 + +--------- + +Co-authored-by: Matt Layman <matthewlayman@gmail.com> +--- + pyproject.toml | 4 +--- + 2 files changed, 2 insertions(+), 3 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 940540c..97b9a37 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -47,11 +47,9 @@ include = [ + "/docs", + "/tests", + ] +-sources = ["src"] + + [tool.hatch.build.targets.wheel] +-sources = ["src"] +-packages = ["pytest_tap"] ++packages = ["src/pytest_tap"] + + [tool.pytest.ini_options] + pythonpath = [".", "src"] + diff --git a/dev-python/pytest-tap/metadata.xml b/dev-python/pytest-tap/metadata.xml new file mode 100644 index 000000000000..5e95859f915a --- /dev/null +++ b/dev-python/pytest-tap/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/pytest-tap/pytest-tap-3.5.ebuild b/dev-python/pytest-tap/pytest-tap-3.5.ebuild new file mode 100644 index 000000000000..cb9dacdc00a9 --- /dev/null +++ b/dev-python/pytest-tap/pytest-tap-3.5.ebuild @@ -0,0 +1,34 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +DESCRIPTION="Reporting plugin for pytest that outputs Test Anything Protocol (TAP) data" +HOMEPAGE=" + https://github.com/python-tap/pytest-tap + https://pypi.org/project/pytest-tap/ +" +# No tests in sdist +SRC_URI="https://github.com/python-tap/pytest-tap/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] + >=dev-python/tap-py-3.2[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.5-hatchling-wheel.patch +) + +EPYTEST_PLUGINS=( "${PN}" ) +EPYTEST_PLUGIN_LOAD_VIA_ENV=1 +distutils_enable_tests pytest |
