Commit 7e3d794 1 parent d61800d commit 7e3d794 Copy full SHA for 7e3d794
File tree 3 files changed +8
-9
lines changed
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 38
38
class sdist (_sdist ):
39
39
"""Custom sdist building using cython
40
40
"""
41
+
41
42
def run (self ):
42
43
# Make sure the compiled Cython files in the distribution
43
44
# are up-to-date
44
45
from Cython .Build import cythonize
46
+
45
47
cythonize (["src/pluggy/callers/cythonized.pyx" ])
46
48
_sdist .run (self )
47
49
48
50
49
51
try :
50
52
from Cython .Build import cythonize
53
+
51
54
print ("Building Cython extension(s)" )
52
55
exts = cythonize (["src/pluggy/callers/cythonized.pyx" ])
53
- cmdclass [' sdist' ] = sdist
56
+ cmdclass [" sdist" ] = sdist
54
57
except ImportError :
55
58
# When Cython is not installed build from C sources
56
59
print ("Building C extension(s)" )
57
- exts = [Extension ("pluggy.callers.cythonized" ,
58
- ["src/pluggy/callers/cythonized.c" ])]
60
+ exts = [Extension ("pluggy.callers.cythonized" , ["src/pluggy/callers/cythonized.c" ])]
59
61
60
62
61
63
def main ():
@@ -74,7 +76,7 @@ def main():
74
76
install_requires = ['importlib-metadata>=0.12;python_version<"3.8"' ],
75
77
extras_require = EXTRAS_REQUIRE ,
76
78
classifiers = classifiers ,
77
- packages = [' pluggy' , ' pluggy.callers' ],
79
+ packages = [" pluggy" , " pluggy.callers" ],
78
80
package_dir = {"" : "src" },
79
81
ext_modules = exts ,
80
82
cmdclass = cmdclass ,
Original file line number Diff line number Diff line change 6
6
from .._result import HookCallError , _Result , _raise_wrapfail
7
7
from .cythonized import _c_multicall
8
8
9
- __all__ = [' _multicall' , ' _c_multicall' ]
9
+ __all__ = [" _multicall" , " _c_multicall" ]
10
10
11
11
12
12
def _multicall (hook_impls , caller_kwargs , firstresult = False ):
Original file line number Diff line number Diff line change @@ -38,10 +38,7 @@ def wrappers(request):
38
38
return [wrapper for i in range (request .param )]
39
39
40
40
41
- @pytest .fixture (
42
- params = [_multicall , _c_multicall ],
43
- ids = lambda item : item .__name__
44
- )
41
+ @pytest .fixture (params = [_multicall , _c_multicall ], ids = lambda item : item .__name__ )
45
42
def callertype (request ):
46
43
return request .param
47
44
You can’t perform that action at this time.
0 commit comments