From 4a3adc678c7cedb4dfbdaa3c82816c5e48ee11df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= Date: Thu, 9 Jul 2026 10:54:29 +0200 Subject: [PATCH] dev-python/btrfs: add py3.15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also silence a setuptools warning. Signed-off-by: Holger Hoffstätte Part-of: https://codeberg.org/gentoo/gentoo/pulls/1361 Merges: https://codeberg.org/gentoo/gentoo/pulls/1361 Signed-off-by: Sam James --- dev-python/btrfs/btrfs-15.ebuild | 4 +++- dev-python/btrfs/files/15-setup.patch | 32 +++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 dev-python/btrfs/files/15-setup.patch diff --git a/dev-python/btrfs/btrfs-15.ebuild b/dev-python/btrfs/btrfs-15.ebuild index a25738fe47bc5..cb3f8b94717b8 100644 --- a/dev-python/btrfs/btrfs-15.ebuild +++ b/dev-python/btrfs/btrfs-15.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{11..14} ) +PYTHON_COMPAT=( python3_{12..15} ) inherit distutils-r1 @@ -25,6 +25,8 @@ SLOT="0" KEYWORDS="amd64" IUSE="examples" +PATCHES=( "${FILESDIR}"/15-setup.patch ) + python_install_all() { if use examples; then # skip symlink meant for development diff --git a/dev-python/btrfs/files/15-setup.patch b/dev-python/btrfs/files/15-setup.patch new file mode 100644 index 0000000000000..418ecbf8720ff --- /dev/null +++ b/dev-python/btrfs/files/15-setup.patch @@ -0,0 +1,32 @@ +https://github.com/knorrie/python-btrfs/issues/55 +https://github.com/knorrie/python-btrfs/commit/7d27aa6665bd38ad05b6eb990dd3bfd5394ee37f + +From: Hans van Kranenburg +Date: Sun, 10 May 2026 10:59:27 +0200 +Subject: [PATCH] setup.py: convert license classifier to SPDX + +setuptools >75.6.0 wants to see the license type specified differently. +Use SPDX identifier instead of the now unused field in classifiers. + +Thanks Holger Hoffstätte, for reporting. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 744bf26..25ca48a 100644 +--- a/setup.py ++++ b/setup.py +@@ -56,11 +56,11 @@ def get_version(): + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', +- 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)', + 'Programming Language :: Python :: 3 :: Only', + 'Programming Language :: Python :: Implementation :: CPython', + 'Operating System :: POSIX :: Linux', + 'Topic :: System :: Filesystems', + 'Topic :: System :: Systems Administration', + ], ++ license='LGPL-3.0-or-later', + )