packages/python/python-zope-testrunner/dont-package-tests.patch

45 lines
1.7 KiB
Diff

diff --unified --recursive --text --new-file zope.testrunner-6.6.orig/setup.py zope.testrunner-6.6/setup.py
--- zope.testrunner-6.6.orig/setup.py 2024-10-19 19:15:29.338440291 +0200
+++ zope.testrunner-6.6/setup.py 2024-10-19 19:16:18.441607868 +0200
@@ -18,6 +18,7 @@
##############################################################################
import os
+from setuptools import find_namespace_packages
from setuptools import setup
@@ -68,10 +69,7 @@
long_description=long_description,
author='Zope Foundation and Contributors',
author_email='zope-dev@zope.dev',
- packages=[
- "zope",
- "zope.testrunner",
- ],
+ packages=find_namespace_packages(where='src', exclude=['zope.testrunner.tests*']),
package_dir={'': 'src'},
classifiers=[
"Development Status :: 5 - Production/Stable",
@@ -93,7 +91,6 @@
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
],
- namespace_packages=['zope'],
python_requires='>=3.8',
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
@@ -103,6 +100,6 @@
'distutils.commands': [
'ftest = zope.testrunner.eggsupport:ftest'],
},
- include_package_data=True,
+ include_package_data=False,
zip_safe=False,
)
diff --unified --recursive --text --new-file zope.testrunner-6.6.orig/src/zope/__init__.py zope.testrunner-6.6/src/zope/__init__.py
--- zope.testrunner-6.6.orig/src/zope/__init__.py 2024-10-19 19:15:29.338440291 +0200
+++ zope.testrunner-6.6/src/zope/__init__.py 1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-__import__('pkg_resources').declare_namespace(__name__)