You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# this is only needed when pkg_resources was already loaded by the namespace package
if"pkg_resources"insys.modules:
frompkg_resourcesimportfixup_namespace_packages
fixup_namespace_packages(str(path))
This is needed for legacy namespace package support, which is now deprecated, along with the entire pkg_resources package.
I saw recently that zope packages which were the last holdouts I was familiar with had switched to new namespace package style, zope.event, zope.interface.
Let's start removing it. The main reason is that it requires us to have a setuptools dev dependency, ignore its deprecation warnings and keep it working.
monkeypatch.syspath_prependcalls it:pytest/src/_pytest/monkeypatch.py
Lines 340 to 351 in 9d74e03
This is needed for legacy namespace package support, which is now deprecated, along with the entire
pkg_resourcespackage.I saw recently that
zopepackages which were the last holdouts I was familiar with had switched to new namespace package style, zope.event, zope.interface.Let's start removing it. The main reason is that it requires us to have a setuptools dev dependency, ignore its deprecation warnings and keep it working.
Let's deprecate it and remove in pytest 10.