1
0

002-omit-tests.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. diff --git a/setup.py b/setup.py
  2. index e21ef70..a4d9ee8 100755
  3. --- a/setup.py
  4. +++ b/setup.py
  5. @@ -55,13 +55,14 @@ def main(args):
  6. setup_args = STATIC_PACKAGE_METADATA.copy()
  7. setup_args.update(dict(
  8. - packages=setuptools.find_packages(),
  9. + packages=setuptools.find_packages(exclude=["*.test", "*.test.*"]),
  10. install_requires=requirements,
  11. conditionalExtensions=getExtensions(),
  12. entry_points={
  13. 'console_scripts': getConsoleScripts()
  14. },
  15. include_package_data=True,
  16. + exclude_package_data={'':['test/*']},
  17. zip_safe=False,
  18. extras_require=_EXTRAS_REQUIRE,
  19. ))
  20. diff --git a/twisted/python/dist.py b/twisted/python/dist.py
  21. index dfff9dc..a05b716 100644
  22. --- a/twisted/python/dist.py
  23. +++ b/twisted/python/dist.py
  24. @@ -191,11 +191,11 @@ def getExtensions():
  25. Get the C extensions used for Twisted.
  26. """
  27. extensions = [
  28. - ConditionalExtension(
  29. - "twisted.test.raiser",
  30. - ["twisted/test/raiser.c"],
  31. - condition=lambda _: _isCPython
  32. - ),
  33. + #ConditionalExtension(
  34. + # "twisted.test.raiser",
  35. + # ["twisted/test/raiser.c"],
  36. + # condition=lambda _: _isCPython
  37. + #),
  38. ConditionalExtension(
  39. "twisted.internet.iocpreactor.iocpsupport",
  40. ["twisted/internet/iocpreactor/iocpsupport/iocpsupport.c",