commit:     4681c2cb27ee5a32ee50638a932a1a06e9277e1e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 21 16:15:07 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 21 16:15:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4681c2cb

dev-python/astroid: Fix setuptools license error

Closes: https://bugs.gentoo.org/951713
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/astroid/astroid-3.3.8.ebuild | 7 +++++++
 dev-python/astroid/astroid-3.3.9.ebuild | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/dev-python/astroid/astroid-3.3.8.ebuild 
b/dev-python/astroid/astroid-3.3.8.ebuild
index 4aa8533d906d..03e53538e81a 100644
--- a/dev-python/astroid/astroid-3.3.8.ebuild
+++ b/dev-python/astroid/astroid-3.3.8.ebuild
@@ -45,6 +45,13 @@ distutils_enable_tests pytest
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
 
+src_prepare() {
+       distutils-r1_src_prepare
+
+       # https://bugs.gentoo.org/951713
+       sed -i -e '/license-files.*Keep in sync/d' pyproject.toml || die
+}
+
 python_test() {
        local EPYTEST_DESELECT=(
                # no clue why they're broken

diff --git a/dev-python/astroid/astroid-3.3.9.ebuild 
b/dev-python/astroid/astroid-3.3.9.ebuild
index d40bb4317cca..661b43f621c7 100644
--- a/dev-python/astroid/astroid-3.3.9.ebuild
+++ b/dev-python/astroid/astroid-3.3.9.ebuild
@@ -45,6 +45,13 @@ distutils_enable_tests pytest
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
 
+src_prepare() {
+       distutils-r1_src_prepare
+
+       # https://bugs.gentoo.org/951713
+       sed -i -e '/license-files.*Keep in sync/d' pyproject.toml || die
+}
+
 python_test() {
        local EPYTEST_IGNORE=()
        local EPYTEST_DESELECT=(

Reply via email to