Skip to content

Commit 1664834

Browse files
committed
Suppress known warnings from underlying tools
Ref: pypa/pip#12243
1 parent 19c3061 commit 1664834

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tox.ini

+5-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,11 @@ passenv =
356356
SPHINX_BUILD_OUTPUT_DIRECTORY
357357
SSH_AUTH_SOCK
358358
setenv =
359-
PYTHONWARNINGS = error
359+
# NOTE: `pip` vendors deprecated `setuptools`' `pkg_resources`, causing
360+
# NOTE: an unfixable deprecation error, so it's suppressed here. Older
361+
# NOTE: `towncrier` versions hit it too. Some `sphinxcontrib` namespace
362+
# NOTE: extensions haven't yet been upgraded to using PEP 420 either:
363+
PYTHONWARNINGS = error,once:pkg_resources is deprecated as an API.:DeprecationWarning:pip._internal.metadata.importlib._envs,once:pkg_resources is deprecated as an API.:DeprecationWarning:towncrier._settings.load,once:Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.:DeprecationWarning
360364
skip_install = true
361365

362366

0 commit comments

Comments
 (0)