diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-07-23 17:24:42 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-07-23 17:29:29 +0200 |
commit | 09fe687a4883a728e848dbdb32d584aa2beded37 (patch) | |
tree | 56e15f96babe1ac8733c09bfc9988ddcc68cb157 | |
parent | dev-python/pykwalify: Enable py3.12 (diff) | |
download | gentoo-09fe687a4883a728e848dbdb32d584aa2beded37.tar.gz gentoo-09fe687a4883a728e848dbdb32d584aa2beded37.tar.bz2 gentoo-09fe687a4883a728e848dbdb32d584aa2beded37.zip |
dev-python/pytest-golden: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | dev-python/pytest-golden/pytest-golden-0.2.2.ebuild | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/dev-python/pytest-golden/pytest-golden-0.2.2.ebuild b/dev-python/pytest-golden/pytest-golden-0.2.2.ebuild index 3087ff87091d..343ed09d482b 100644 --- a/dev-python/pytest-golden/pytest-golden-0.2.2.ebuild +++ b/dev-python/pytest-golden/pytest-golden-0.2.2.ebuild @@ -4,17 +4,20 @@ EAPI=8 DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 DESCRIPTION="Plugin for pytest that offloads expected outputs to data files" HOMEPAGE=" - https://github.com/oprypin/pytest-golden + https://github.com/oprypin/pytest-golden/ https://pypi.org/project/pytest-golden/ " # No tests in PyPI tarballs -SRC_URI="https://github.com/oprypin/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" +SRC_URI=" + https://github.com/oprypin/pytest-golden/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" @@ -29,3 +32,9 @@ RDEPEND=" " distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_golden.plugin + epytest -x +} |