You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.4 KiB

  1. --- a/src/twisted/python/_setup.py
  2. +++ b/src/twisted/python/_setup.py
  3. @@ -177,11 +177,6 @@ class ConditionalExtension(Extension, ob
  4. # The C extensions used for Twisted.
  5. _EXTENSIONS = [
  6. ConditionalExtension(
  7. - "twisted.test.raiser",
  8. - sources=["src/twisted/test/raiser.c"],
  9. - condition=lambda _: _isCPython),
  10. -
  11. - ConditionalExtension(
  12. "twisted.internet.iocpreactor.iocpsupport",
  13. sources=[
  14. "src/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c",
  15. @@ -275,12 +270,11 @@ def getSetupArgs(extensions=_EXTENSIONS,
  16. # PyHamcrest 1.10.0 is Python 3 only, but lacks package metadata that
  17. # says so. This condition can be dropped when Twisted drops support for
  18. # Python 2.7.
  19. - "PyHamcrest >= 1.9.0, != 1.10.0",
  20. "attrs >= 19.2.0",
  21. ]
  22. arguments.update(dict(
  23. - packages=find_packages("src"),
  24. + packages=find_packages("src", exclude=["*.test", "*.test.*"]),
  25. use_incremental=True,
  26. setup_requires=["incremental >= 16.10.1"],
  27. install_requires=requirements,
  28. @@ -290,7 +284,7 @@ def getSetupArgs(extensions=_EXTENSIONS,
  29. cmdclass=command_classes,
  30. include_package_data=True,
  31. exclude_package_data={
  32. - "": ["*.c", "*.h", "*.pxi", "*.pyx", "build.bat"],
  33. + "": ["*.c", "*.h", "*.pxi", "*.pyx", "build.bat", "test/*"],
  34. },
  35. zip_safe=False,
  36. extras_require=_EXTRAS_REQUIRE,