We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d69a4c commit a200255Copy full SHA for a200255
setup.py
@@ -1,6 +1,7 @@
1
import os
2
import subprocess
3
import sys
4
+import unittest
5
6
7
if sys.platform in ('win32', 'cygwin', 'cli'):
@@ -16,6 +17,12 @@
16
17
LIBUV_DIR = os.path.join(os.path.dirname(__file__), 'vendor', 'libuv')
18
19
20
+def discover_tests():
21
+ test_loader = unittest.TestLoader()
22
+ test_suite = test_loader.discover('tests', pattern='test_*.py')
23
+ return test_suite
24
+
25
26
class libuv_build_ext(build_ext):
27
build_ext.user_options.extend([
28
("use-system-libuv", None,
@@ -97,5 +104,6 @@ def build_extensions(self):
97
104
'Intended Audience :: Developers',
98
105
],
99
106
provides=['uvloop'],
100
- include_package_data=True
107
+ include_package_data=True,
108
+ test_suite='setup.discover_tests'
101
109
)
0 commit comments