Skip to content

Commit

Permalink
Exclude tests from wheel
Browse files Browse the repository at this point in the history
As the wheel's primary purpose is to be installed in a virtualenv or on a
system, the tests for testrunner itself are unnecessary to include. Including
them also makes distro-tooling such as Arch Linux's namcap produce noisy
warnings regarding missing dependencies.

The tests are still included in the sdist as per the MANIFEST.in file.
  • Loading branch information
carlsmedstad committed Aug 23, 2024
1 parent 413ee70 commit c8bd3b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def read(*names):
long_description=long_description,
author='Zope Foundation and Contributors',
author_email='[email protected]',
packages=find_namespace_packages(where='src'),
packages=find_namespace_packages(where='src', exclude=['zope.testrunner.tests*']),
package_dir={'': 'src'},
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down Expand Up @@ -123,6 +123,6 @@ def read(*names):
'distutils.commands': [
'ftest = zope.testrunner.eggsupport:ftest'],
},
include_package_data=True,
include_package_data=False,
zip_safe=False,
)

0 comments on commit c8bd3b8

Please sign in to comment.