From d84738ac9f0fcc7a6f175a9873f63a70b87881c4 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 1 Jan 2019 09:17:11 -0500 Subject: [PATCH] Switch to pkgutil namespace technique --- CHANGES.rst | 7 +++++++ jaraco/__init__.py | 2 +- setup.cfg | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 8654a0c..9791c65 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,10 @@ +2.0 +=== + +Switch to `pkgutil namespace technique +`_ +for the ``jaraco`` namespace. + 1.20 ==== diff --git a/jaraco/__init__.py b/jaraco/__init__.py index 5284146..69e3be5 100644 --- a/jaraco/__init__.py +++ b/jaraco/__init__.py @@ -1 +1 @@ -__import__("pkg_resources").declare_namespace(__name__) +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/setup.cfg b/setup.cfg index 08b10b7..5d28699 100644 --- a/setup.cfg +++ b/setup.cfg @@ -18,7 +18,6 @@ classifiers = [options] packages = find: -namespace_packages = jaraco include_package_data = true python_requires = >=2.7 install_requires =