I'm looking to package and upload a library I have to PyPI in the next few days, but I'm a little unsure about my approach to the namespace.
I have a few otherwise unrelated projects with a similar approach and wanted to give them all the same namespace. For example:
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
namespace_packages = ['rollyourown'],
In each project base directory, create the following structure:
/setup.py /abc/__init__.py /abc/seo/
/abc/__init__.py contains :
setup.py contains :
setup(..., packages: ['abc', 'abc.seo'], namespace_packages = ['abc'] ... )
Reference documentation: namespace packages.