commit:     9a73c73b065a3c6f4ef47f048accec121926187c
Author:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Wed Oct  8 19:24:02 2025 +0000
Commit:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
CommitDate: Wed Oct  8 20:24:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9a73c73b

dev-python/jsonfeed: enable py3.13, py3.14

Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>

 dev-python/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(-)

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="[email protected]",

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

Reply via email to