Migrate to native namespaces
Change-Id: Iad300e37b11e46796d2622e131bef6e9f055b7a2 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
@@ -8,13 +8,6 @@ home-page = https://angular-gettext.rocketeer.be/
|
||||
keywords = angular_gettext xstatic
|
||||
license = MIT
|
||||
zip_safe = False
|
||||
namespace_packages =
|
||||
xstatic
|
||||
xstatic.pkg
|
||||
|
||||
[files]
|
||||
packages =
|
||||
xstatic
|
||||
|
||||
[bdist_wheel]
|
||||
universal = True
|
||||
|
||||
5
setup.py
5
setup.py
@@ -1,4 +1,4 @@
|
||||
from setuptools import setup, find_packages
|
||||
from setuptools import setup, find_namespace_packages
|
||||
from xstatic.pkg import angular_gettext 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=[],
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
@@ -1 +0,0 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
Reference in New Issue
Block a user