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. @@ -173,11 +173,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. @@ -241,12 +236,11 @@ def getSetupArgs(extensions=_EXTENSIONS)
  16. "incremental >= 16.10.1",
  17. "Automat >= 0.3.0",
  18. "hyperlink >= 17.1.1",
  19. - "PyHamcrest >= 1.9.0",
  20. "attrs >= 17.4.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. @@ -256,7 +250,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,