From 53dfd46d0a58dfd0c7c433de10dec213725e3415 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 11 Feb 2026 14:27:18 +0000 Subject: [PATCH] Migrate to native namespaces Change-Id: Ie4bb2f15e4f319b90ec279e92b24aca0a3e8aa88 Signed-off-by: Stephen Finucane --- setup.py | 7 ++----- xstatic/__init__.py | 1 - xstatic/pkg/__init__.py | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 xstatic/__init__.py delete mode 100644 xstatic/pkg/__init__.py diff --git a/setup.py b/setup.py index a0a4057..b9c5be5 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,10 @@ - +from setuptools import setup, find_namespace_packages from xstatic.pkg import angular_lrdragndrop as xs # The README.txt file should be written in reST so that PyPI can use # it to generate your project's PyPI page. long_description = open('README.txt').read() -from setuptools import setup, find_packages - setup( name=xs.PACKAGE_NAME, version=xs.PACKAGE_VERSION, @@ -19,8 +17,7 @@ setup( license=xs.LICENSE, url=xs.HOMEPAGE, platforms=xs.PLATFORMS, - packages=find_packages(), - namespace_packages=['xstatic', 'xstatic.pkg', ], + packages=find_namespace_packages(), include_package_data=True, zip_safe=False, install_requires=[], diff --git a/xstatic/__init__.py b/xstatic/__init__.py deleted file mode 100644 index de40ea7..0000000 --- a/xstatic/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/xstatic/pkg/__init__.py b/xstatic/pkg/__init__.py deleted file mode 100644 index de40ea7..0000000 --- a/xstatic/pkg/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__)