Full cleanup of pkg_resources (#9797)

Fixes #9606

This PRs removes some elements that were related to pkg_resources dependency and its deprecation.
This commit is contained in:
Adrien Ferrand
2023-11-13 15:50:32 -08:00
committed by GitHub
parent d8392bf394
commit 5f67bb99a8
7 changed files with 8 additions and 21 deletions
+1 -9
View File
@@ -21,13 +21,7 @@
# updated.
# 4) Ignore our own PendingDeprecationWarning about update_symlinks soon to be dropped.
# See https://github.com/certbot/certbot/issues/6284.
# 5) Ignore pkg_resources.declare_namespace used in a large number of Google's Python
# libs. e.g. https://github.com/googleapis/google-auth-library-python/issues/1229.
# It is also is used in sphinxcontrib-devhelp 1.0.2 which as of writing this
# is the latest version of that library. See
# https://github.com/sphinx-doc/sphinxcontrib-devhelp/blob/1.0.2/setup.py#L69.
# 6) Ignore DeprecationWarning from using pkg_resources API
# 7) Ignore DeprecationWarning for datetime.utcfromtimestamp() triggered
# 5) Ignore DeprecationWarning for datetime.utcfromtimestamp() triggered
# when importing the pytz.tzinfo module
# https://github.com/stub42/pytz/issues/105
filterwarnings =
@@ -36,6 +30,4 @@ filterwarnings =
ignore:.*rsyncdir:DeprecationWarning
ignore:'urllib3.contrib.pyopenssl:DeprecationWarning:requests_toolbelt
ignore:update_symlinks is deprecated:PendingDeprecationWarning
ignore:.*declare_namespace\(':DeprecationWarning
ignore:pkg_resources is deprecated as an API:DeprecationWarning
ignore:.*datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:pytz.tzinfo