Skip to content

Commit 3deddca

Browse files
committed
Update setup.py/cfg
delete deprecated : bdist_wheel tests_require test_suite use find_namespace_pacakge to prevent warning about 'importable package' use of namespace because 'ui' is not a pkg as it does not contain __ini__.py
1 parent e5701cd commit 3deddca

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

setup.cfg

+1-1
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

+8-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
'pytest-cov',
3535
]
3636

37-
from setuptools import setup, find_packages
37+
from setuptools import setup, find_namespace_packages
3838
here = os.path.abspath(os.path.dirname(__file__))
3939
try:
4040
with open(os.path.join(here, 'README.rst'), 'r') as f:
@@ -91,15 +91,19 @@
9191
classifiers=CLASSIFIERS,
9292
author="Chris McDonough",
9393
author_email="chrism@plope.com",
94-
packages=find_packages(),
94+
packages=find_namespace_packages(exclude=["docs","supervisor.tests","supervisor.tests.*"]),
95+
package_dir={"": "."},
96+
package_data={
97+
"supervisor": ["version.txt"],
98+
"supervisor.ui": ["**/*"],
99+
"supervisor.skel": ["*"]
100+
},
95101
install_requires=requires,
96102
extras_require={
97103
'testing': testing_extras,
98104
},
99-
tests_require=tests_require,
100105
include_package_data=True,
101106
zip_safe=False,
102-
test_suite="supervisor.tests",
103107
entry_points={
104108
'console_scripts': [
105109
'supervisord = supervisor.supervisord:main',

0 commit comments

Comments
 (0)