Merge pull request #3 from DataShades/namespace-packages

Declare ckanext and ckanext.rating as namespace packages
This commit is contained in:
Jari Voutilainen 2016-12-07 09:02:36 +02:00 committed by GitHub
commit cb0c2d69a2
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

View File

@ -55,6 +55,8 @@ setup(
# simple. Or you can use find_packages().
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
namespace_packages=['ckanext', 'ckanext.rating'],
# List run-time dependencies here. These will be installed by pip when your
# project is installed. For an analysis of "install_requires" vs pip's
# requirements files see: