Skip to content

Commit fc5aa0a

Browse files
committed
update setup.py/cfg py3
delete deprecated : bdist_wheel tests_require test_suite use find_namespace_package to prevent warning about 'importable package' use of namespace because 'ui' is not a pkg as it does not contain __ini__.py
1 parent 364e2bf commit fc5aa0a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
zip_ok = false
33

44
[bdist_wheel]
5-
universal = 1
5+
universal = 0

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
" dependency because pkg_resources is used to load plugins"
3737
)
3838

39-
from setuptools import setup, find_packages
39+
from setuptools import setup, find_namespace_packages
4040
here = os.path.abspath(os.path.dirname(__file__))
4141
try:
4242
with open(os.path.join(here, 'README.rst'), 'r') as f:
@@ -93,8 +93,14 @@
9393
classifiers=CLASSIFIERS,
9494
author="Chris McDonough",
9595
author_email="chrism@plope.com",
96-
packages=find_packages(),
97-
install_requires=[],
96+
packages=find_namespace_packages(exclude=["docs","supervisor.tests","supervisor.tests.*"]),
97+
package_dir={"": "."},
98+
package_data={
99+
"supervisor": ["version.txt"],
100+
"supervisor.ui": ["**/*"],
101+
"supervisor.skel": ["*"]
102+
},
103+
install_requires=requires,
98104
extras_require={
99105
'test': ['pytest', 'pytest-cov']
100106
},

0 commit comments

Comments
 (0)