Fresh pull from upstream (stable) package feed
[librecmc/package-feed.git] / lang / twisted / patches / 002-omit-tests.patch
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  
8      setup_args.update(dict(
9 -        packages=setuptools.find_packages(),
10 +        packages=setuptools.find_packages(exclude=["*.test", "*.test.*"]),
11          install_requires=requirements,
12          conditionalExtensions=getExtensions(),
13          entry_points={
14              'console_scripts':  getConsoleScripts()
15          },
16          include_package_data=True,
17 +        exclude_package_data={'':['test/*']},
18          zip_safe=False,
19          extras_require=_EXTRAS_REQUIRE,
20      ))
21 diff --git a/twisted/python/dist.py b/twisted/python/dist.py
22 index dfff9dc..a05b716 100644
23 --- a/twisted/python/dist.py
24 +++ b/twisted/python/dist.py
25 @@ -191,11 +191,11 @@ def getExtensions():
26      Get the C extensions used for Twisted.
27      """
28      extensions = [
29 -        ConditionalExtension(
30 -            "twisted.test.raiser",
31 -            ["twisted/test/raiser.c"],
32 -            condition=lambda _: _isCPython
33 -        ),
34 +        #ConditionalExtension(
35 +        #    "twisted.test.raiser",
36 +        #    ["twisted/test/raiser.c"],
37 +        #    condition=lambda _: _isCPython
38 +        #),
39          ConditionalExtension(
40              "twisted.internet.iocpreactor.iocpsupport",
41              ["twisted/internet/iocpreactor/iocpsupport/iocpsupport.c",