commit:     3604b6736fc276ca1fc3932810be50d4e6da488a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  6 03:38:09 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb  6 03:38:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3604b673

dev-python/autocommand: fix compat w/ setuptools-69

Closes: https://bugs.gentoo.org/917754
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/autocommand/autocommand-2.2.2.ebuild    |  6 ++++-
 .../autocommand-2.2.2-setuptools-license.patch     | 26 ++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletion(-)

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 <[email protected]>
+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";
+

Reply via email to