-
Notifications
You must be signed in to change notification settings - Fork 68
/
_tests_setup.py
38 lines (37 loc) · 1.36 KB
/
_tests_setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Not a real setup package. This is just to unasync our tests files
import setuptools
import unasync
setuptools.setup(
name='ahk',
version='0.0.1',
author='Example Author',
author_email='author@example.com',
description='A package used to test customized unasync',
url='https://github.com/pypa/sampleproject',
packages=['tests', 'tests._async'],
cmdclass={
'build_py': unasync.cmdclass_build_py(
rules=[
unasync.Rule(
fromdir='/tests/_async/',
todir='/tests/_sync/',
additional_replacements={
'AsyncAHK': 'AHK',
'AsyncTransport': 'Transport',
'AsyncWindow': 'Window',
'AsyncDaemonProcessTransport': 'DaemonProcessTransport',
'_AIOP': '_SIOP',
'async_create_process': 'sync_create_process',
'adrain_stdin': 'drain_stdin',
'IsolatedAsyncioTestCase': 'TestCase',
'asyncSetUp': 'setUp',
'asyncTearDown': 'tearDown',
'async_sleep': 'sleep',
# "__aenter__": "__aenter__",
},
),
]
)
},
# package_dir={"": "src"},
)