Skip to content

Commit ddd0173

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 ddd0173

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
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: 7 additions & 4 deletions
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,18 @@
9191
classifiers=CLASSIFIERS,
9292
author="Chris McDonough",
9393
author_email="[email protected]",
94-
packages=find_packages(),
94+
packages=find_namespace_packages(exclude=["docs","supervisor.tests","supervisor.tests.*"]),
95+
package_dir={"": "."},
96+
package_data={
97+
"supervisor.ui": ["**/*"],
98+
"supervisor.skel": ["*"]
99+
},
95100
install_requires=requires,
96101
extras_require={
97102
'testing': testing_extras,
98103
},
99-
tests_require=tests_require,
100104
include_package_data=True,
101105
zip_safe=False,
102-
test_suite="supervisor.tests",
103106
entry_points={
104107
'console_scripts': [
105108
'supervisord = supervisor.supervisord:main',

0 commit comments

Comments
 (0)