dev-python/decopatch: remove pkg_resources

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2026-03-28 22:17:17 +05:00
parent bc901cd86c
commit 5fd6e32b57
2 changed files with 29 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2022-2025 Gentoo Authors
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -21,7 +21,10 @@ KEYWORDS="~amd64"
RDEPEND="dev-python/makefun[${PYTHON_USEDEP}]"
BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]"
PATCHES=( "${FILESDIR}/${P}-python12.patch" )
PATCHES=(
"${FILESDIR}/${P}-python12.patch"
"${FILESDIR}/${P}-pkg_resources.patch"
)
EPYTEST_PLUGINS=( pytest-cases )
EPYTEST_DESELECT=(

View File

@@ -0,0 +1,24 @@
https://github.com/smarie/python-decopatch/pull/39
---
setup.py | 7 -------
1 file changed, 7 deletions(-)
diff --git a/setup.py b/setup.py
index ab1583e..f533213 100644
--- a/setup.py
+++ b/setup.py
@@ -15,13 +15,6 @@
from setuptools import setup
-# (1) check required versions (from https://medium.com/@daveshawley/safely-using-setup-cfg-for-metadata-1babbe54c108)
-import pkg_resources
-
-pkg_resources.require("setuptools>=39.2")
-pkg_resources.require("setuptools_scm")
-
-
# (2) Generate download url using git version
from setuptools_scm import get_version # noqa: E402