Restore support for namespace package declaration, selected on a 'nspkg_technique' setting
This commit is contained in:
parent
31fb9d19ee
commit
16d68a9fd1
9
setup.py
9
setup.py
|
@ -11,6 +11,11 @@ with io.open('README.rst', encoding='utf-8') as readme:
|
||||||
|
|
||||||
name = 'skeleton'
|
name = 'skeleton'
|
||||||
description = ''
|
description = ''
|
||||||
|
nspkg_technique = 'native'
|
||||||
|
"""
|
||||||
|
Does this package use "native" namespace packages or
|
||||||
|
pkg_resources "managed" namespace packages?
|
||||||
|
"""
|
||||||
|
|
||||||
params = dict(
|
params = dict(
|
||||||
name=name,
|
name=name,
|
||||||
|
@ -22,6 +27,10 @@ params = dict(
|
||||||
url="https://github.com/jaraco/" + name,
|
url="https://github.com/jaraco/" + name,
|
||||||
packages=setuptools.find_packages(),
|
packages=setuptools.find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
namespace_packages=(
|
||||||
|
name.split('.')[:-1] if nspkg_technique == 'managed'
|
||||||
|
else []
|
||||||
|
),
|
||||||
python_requires='>=2.7',
|
python_requires='>=2.7',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user