Undo the removal of pkg_resources DeprecationWarning
This was removed downstream-only to give impacted packages more time. However, we actually want the warning, so packagers learn pkg_resources is deprecated. No remaining Fedora 40 package fails to build because of this warning.
This commit is contained in:
parent
f3ed497f0c
commit
7e66c23b74
@ -1,30 +0,0 @@
|
||||
From 95546a2302152676192d5a4880b1e5d09d2f854f Mon Sep 17 00:00:00 2001
|
||||
From: Lumir Balhar <lbalhar@redhat.com>
|
||||
Date: Fri, 22 Sep 2023 00:11:50 +0200
|
||||
Subject: [PATCH] Remove warning from pkg_resources
|
||||
|
||||
---
|
||||
pkg_resources/__init__.py | 7 +------
|
||||
1 file changed, 1 insertion(+), 6 deletions(-)
|
||||
|
||||
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
|
||||
index 3baa1f3..31f81a4 100644
|
||||
--- a/pkg_resources/__init__.py
|
||||
+++ b/pkg_resources/__init__.py
|
||||
@@ -115,12 +115,7 @@ _namespace_handlers = None
|
||||
_namespace_packages = None
|
||||
|
||||
|
||||
-warnings.warn(
|
||||
- "pkg_resources is deprecated as an API. "
|
||||
- "See https://setuptools.pypa.io/en/latest/pkg_resources.html",
|
||||
- DeprecationWarning,
|
||||
- stacklevel=2,
|
||||
-)
|
||||
+
|
||||
|
||||
|
||||
_PEP440_FALLBACK = re.compile(r"^v?(?P<safe>(?:[0-9]+!)?[0-9]+(?:\.[0-9]+)*)", re.I)
|
||||
--
|
||||
2.41.0
|
||||
|
@ -45,13 +45,6 @@ Patch: Remove-optional-or-unpackaged-test-deps.patch
|
||||
# adjust it, but only when $RPM_BUILD_ROOT is set
|
||||
Patch: Adjust-the-setup.py-install-deprecation-message.patch
|
||||
|
||||
# Remove DeprecationWarning from pkg_resources.
|
||||
# The warning causes tests of dependant packages to fail
|
||||
# but their maintainers or developers are aware of that
|
||||
# so we are removing the warning here until they all switch
|
||||
# away from pkg_resources.
|
||||
Patch: Remove-warning-from-pkg_resources.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
|
Loading…
Reference in New Issue
Block a user