summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-11-19 09:08:29 +0100
committerMichał Górny <mgorny@gentoo.org>2023-11-19 09:08:29 +0100
commitf5f8d972823e6dbbc3062e8f9a744035951d7b87 (patch)
tree47938240dc6bd390b5fcd0e19b119b76b026957f /dev-python/tavern/tavern-2.6.0.ebuild
parentsys-fs/duperemove: Bump to 0.14 (diff)
downloadgentoo-f5f8d972823e6dbbc3062e8f9a744035951d7b87.tar.gz
gentoo-f5f8d972823e6dbbc3062e8f9a744035951d7b87.tar.bz2
gentoo-f5f8d972823e6dbbc3062e8f9a744035951d7b87.zip
dev-python/tavern: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/tavern/tavern-2.6.0.ebuild')
-rw-r--r--dev-python/tavern/tavern-2.6.0.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-python/tavern/tavern-2.6.0.ebuild b/dev-python/tavern/tavern-2.6.0.ebuild
index a8c32af99f98..0f7c20bb2375 100644
--- a/dev-python/tavern/tavern-2.6.0.ebuild
+++ b/dev-python/tavern/tavern-2.6.0.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=flit
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
@@ -44,11 +44,16 @@ BDEPEND="
distutils_enable_tests pytest
src_prepare() {
+ local PATCHES=(
+ "${FILESDIR}/${P}-py312.patch"
+ )
+
# strip unnecessary pins, upstream doesn't update them a lot
sed -i -E -e 's:,?<=?[0-9.]+::' pyproject.toml || die
distutils-r1_src_prepare
}
python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest -p tavern
}