GH-1230 Use find_namespace_packages()

This commit is contained in:
Darren Meehan 2023-03-17 10:07:50 +00:00 committed by Pavel Minaev
parent 86d542e559
commit 70dba8e137
6 changed files with 6 additions and 44 deletions

View file

@ -176,14 +176,12 @@ if __name__ == "__main__":
"License :: OSI Approved :: MIT License",
],
package_dir={"": "src"},
packages=[
"debugpy",
"debugpy.adapter",
"debugpy.common",
"debugpy.launcher",
"debugpy.server",
"debugpy._vendored",
],
packages=setuptools.find_namespace_packages(
include=[
"debugpy",
"debugpy.*",
]
),
package_data={
"debugpy": ["ThirdPartyNotices.txt"],
"debugpy._vendored": [

View file

@ -1,8 +0,0 @@
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

View file

@ -1,7 +0,0 @@
import warnings
with warnings.catch_warnings():
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

View file

@ -1,7 +0,0 @@
import warnings
with warnings.catch_warnings():
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

View file

@ -1,7 +0,0 @@
import warnings
with warnings.catch_warnings():
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

View file

@ -1,7 +0,0 @@
import warnings
with warnings.catch_warnings():
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)