From 9a73c73b065a3c6f4ef47f048accec121926187c Mon Sep 17 00:00:00 2001 From: Henri Gasc Date: Wed, 8 Oct 2025 21:24:02 +0200 Subject: [PATCH] dev-python/jsonfeed: enable py3.13, py3.14 Signed-off-by: Henri Gasc --- .../jsonfeed/files/jsonfeed-1.1.2-exclude_tests.patch | 11 +++++++++++ dev-python/jsonfeed/jsonfeed-1.1.2.ebuild | 11 +++++------ 2 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 dev-python/jsonfeed/files/jsonfeed-1.1.2-exclude_tests.patch diff --git a/dev-python/jsonfeed/files/jsonfeed-1.1.2-exclude_tests.patch b/dev-python/jsonfeed/files/jsonfeed-1.1.2-exclude_tests.patch new file mode 100644 index 0000000000..fe0c98f279 --- /dev/null +++ b/dev-python/jsonfeed/files/jsonfeed-1.1.2-exclude_tests.patch @@ -0,0 +1,11 @@ +--- a/setup.py ++++ b/setup.py +@@ -8,7 +8,7 @@ with open("README.md") as fh: + setup( + name="jsonfeed-util", + version=version, +- packages=find_packages(), ++ packages=find_packages(exclude=["tests", "tests.*"]), + # metadata for upload to PyPI + author="Lukas Schwab", + author_email="lukas.schwab@gmail.com", diff --git a/dev-python/jsonfeed/jsonfeed-1.1.2.ebuild b/dev-python/jsonfeed/jsonfeed-1.1.2.ebuild index feaf40af44..6d0bc7a84e 100644 --- a/dev-python/jsonfeed/jsonfeed-1.1.2.ebuild +++ b/dev-python/jsonfeed/jsonfeed-1.1.2.ebuild @@ -1,10 +1,10 @@ -# Copyright 2024 Gentoo Authors +# Copyright 2024-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{11..12} ) +PYTHON_COMPAT=( python3_{11..14} ) HTML_DOCS=( docs ) @@ -18,9 +18,8 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" +PATCHES=("${FILESDIR}/${P}-exclude_tests.patch") + RDEPEND="dev-python/feedparser[${PYTHON_USEDEP}]" -python_prepare_all() { - distutils-r1_python_prepare_all - rm -rf "${S}/tests" -} +distutils_enable_tests pytest