Migrate to native namespaces

Change-Id: I7452b215736a7c81b6a44dd6987f75fa8fdf7822
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2026-02-11 14:23:26 +00:00
parent 84f71a2e95
commit fe0c15810d
3 changed files with 2 additions and 5 deletions
+2 -3
View File
@@ -1,4 +1,4 @@
from setuptools import setup, find_packages
from setuptools import setup, find_namespace_packages
from xstatic.pkg import moment_timezone as xs
# The README.txt file should be written in reST so that PyPI can use
@@ -18,8 +18,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=[],
-1
View File
@@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)
-1
View File
@@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)