Skip to content

Commit

Permalink
[QOL-6491] cleanup
Browse files Browse the repository at this point in the history
- don't declare namespaces on modules that only exist inside one extension
- update team name and email address
- update manifest file inclusions
  • Loading branch information
ThrawnCA committed Mar 3, 2020
1 parent 22f5846 commit c13ce72
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
recursive-include ckanext/qgov/common/resources *
recursive-include ckanext/qgov/common/theme *
recursive-include ckanext *.json
8 changes: 1 addition & 7 deletions ckanext/qgov/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
"""Empty namespace, just exists to keep things tidy"""
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

8 changes: 1 addition & 7 deletions ckanext/qgov/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
"""Empty namespace, just exists to keep things tidy"""
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
long_description='',
classifiers=[],
keywords='',
author='Digital Applications',
author_email='osidt@dsiti.qld.gov.au',
author='Queensland Online',
author_email='qol.development@smartservice.qld.gov.au',
url='',
license='',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=['ckanext', 'ckanext.qgov', 'ckanext.qgov.common'],
namespace_packages=['ckanext'],
include_package_data=True,
zip_safe=False,
install_requires=[],
Expand Down

0 comments on commit c13ce72

Please sign in to comment.