Name: sample-namespace-packages
Owner: Python Packaging Authority
Description: Tests against namespace packages
Created: 2017-02-01 21:50:24.0
Updated: 2018-05-10 21:08:01.0
Pushed: 2017-11-01 19:46:52.0
Homepage: null
Size: 20
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repository contains samples for the various ways to create namespace packages in Python. For more details, see the documentation on namespace packages
This repo also contains testing tools to exercise installation scenarios for namespace packages.
To run the scenarios:
p install --upgrade setuptools virtualenv nox-automation
x --report report.json
nox
will execute all of the scenarios and report whether the namespace
packages are able to be imported successfully after installation. You can
use python report_to_table.py
to transform the report into a
markdown-friendly table.
To see the status since the last time the scenarios were run open table.md.
Please note:
pkg_resources
method of namspacing is no longer recommended and there is the desire to deprecate it. It should only be used in legacy namespaces that already rely on it.pkgutil
method.python setup.py install
. To prevent this, it is recommended that you set zip_safe=False
in setup.py
, as we do here.