summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-06 03:38:09 +0000
committerSam James <sam@gentoo.org>2024-02-06 03:38:09 +0000
commit3604b6736fc276ca1fc3932810be50d4e6da488a (patch)
treec0a70549c38389353fb1fc6a30db30ac18b3b59f
parentapp-misc/recoll: drop 1.34.6-r1, 1.35.0 (diff)
downloadgentoo-3604b6736fc276ca1fc3932810be50d4e6da488a.tar.gz
gentoo-3604b6736fc276ca1fc3932810be50d4e6da488a.tar.bz2
gentoo-3604b6736fc276ca1fc3932810be50d4e6da488a.zip
dev-python/autocommand: fix compat w/ setuptools-69
Closes: https://bugs.gentoo.org/917754 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-python/autocommand/autocommand-2.2.2.ebuild6
-rw-r--r--dev-python/autocommand/files/autocommand-2.2.2-setuptools-license.patch26
2 files changed, 31 insertions, 1 deletions
diff --git a/dev-python/autocommand/autocommand-2.2.2.ebuild b/dev-python/autocommand/autocommand-2.2.2.ebuild
index 458d17f0cb76..5c2c6ee2ac68 100644
--- a/dev-python/autocommand/autocommand-2.2.2.ebuild
+++ b/dev-python/autocommand/autocommand-2.2.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -22,4 +22,8 @@ LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.2.2-setuptools-license.patch
+)
+
distutils_enable_tests pytest
diff --git a/dev-python/autocommand/files/autocommand-2.2.2-setuptools-license.patch b/dev-python/autocommand/files/autocommand-2.2.2-setuptools-license.patch
new file mode 100644
index 000000000000..b0d6fdd5a2f8
--- /dev/null
+++ b/dev-python/autocommand/files/autocommand-2.2.2-setuptools-license.patch
@@ -0,0 +1,26 @@
+https://bugs.gentoo.org/917754
+https://github.com/Lucretiel/autocommand/issues/28
+https://github.com/Lucretiel/autocommand/pull/31
+
+From cf98b8bc024f536565a67369a9f9a506fe67b942 Mon Sep 17 00:00:00 2001
+From: Ben Greiner <code@bnavigator.de>
+Date: Fri, 22 Dec 2023 14:15:46 +0100
+Subject: [PATCH] License is dynamic
+
+---
+ pyproject.toml | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index aa30b35..5221f65 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -18,6 +18,7 @@ classifiers = [
+ "Topic :: Software Development :: Libraries",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ ]
++dynamic = [ "license" ]
+
+ [project.urls]
+ "Homepage" = "https://github.com/Lucretiel/autocommand"
+