From a6c53bc24df806e18078c77faf6fce02ecfa9a69 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 11 Feb 2026 14:27:03 +0000 Subject: [PATCH] Migrate to native namespaces Change-Id: Ib9fb3cce20a489c880199efc695d52b9d5db47ff Signed-off-by: Stephen Finucane --- setup.cfg | 7 ------- setup.py | 5 ++--- xstatic/__init__.py | 1 - xstatic/pkg/__init__.py | 1 - 4 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 xstatic/__init__.py delete mode 100644 xstatic/pkg/__init__.py diff --git a/setup.cfg b/setup.cfg index 8dd87a8..9351436 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,13 +8,6 @@ home-page = https://github.com/lorenzofox3/Smart-Table keywords = smart-table angular table angular_smart_table xstatic license = (same as smart-table) zip_safe = False -namespace_packages = - xstatic - xstatic.pkg - -[files] -packages = - xstatic [bdist_wheel] universal = True diff --git a/setup.py b/setup.py index fc773cd..99132a7 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from setuptools import setup, find_packages +from setuptools import setup, find_namespace_packages from xstatic.pkg import angular_smart_table as xs # The README.txt file should be written in reST so that PyPI can use @@ -17,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__)