File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 17
17
18
18
- uses : wntrblm/nox@2023.04.22
19
19
with :
20
- python-versions : " 3.8, 3.11"
20
+ python-versions : " 3.8, 3.11, pypy3.10 "
21
21
22
22
- name : Install Intel SDE
23
23
run : |
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def test(session: nox.Session) -> None:
65
65
session .run ("pytest" , * session .posargs , env = env )
66
66
67
67
68
- @nox .session (python = ["3.8" , "3.11" ])
68
+ @nox .session (python = ["3.8" , "3.11" , "pypy3.10" ])
69
69
def _coverage (session : nox .Session ) -> None :
70
70
"""internal coverage run. Do not run manually"""
71
71
with_sde = "--with-sde" in session .posargs
@@ -132,6 +132,7 @@ def coverage(session: nox.Session) -> None:
132
132
assert len (posargs - {"--with-sde" }) == 0
133
133
posargs .add ("--report" )
134
134
session .notify ("_coverage-3.8" , ["--clean" ])
135
+ session .notify ("_coverage-pypy3.10" , [])
135
136
session .notify ("_coverage-3.11" , posargs )
136
137
137
138
Original file line number Diff line number Diff line change @@ -174,16 +174,16 @@ def base64_build(plat_name):
174
174
class BuildExt (build_ext ):
175
175
def finalize_options (self ):
176
176
if "-coverage" in os .environ .get ("CFLAGS" , "" ).split ():
177
- coverage_build = HERE / "build" / "coverage"
177
+ plat_name = getattr (self , "plat_name" , None ) or sysconfig .get_platform ()
178
+ temp_name = f"coverage-{ plat_name } -{ sys .implementation .cache_tag } "
179
+ coverage_build = HERE / "build" / temp_name
178
180
if coverage_build .exists ():
179
181
shutil .rmtree (coverage_build )
180
182
self .build_temp = str (coverage_build )
181
183
super ().finalize_options ()
182
184
183
185
def run (self ):
184
- plat_name = None
185
- if hasattr (self , "plat_name" ):
186
- plat_name = getattr (self , "plat_name" )
186
+ plat_name = getattr (self , "plat_name" , None )
187
187
with base64_build (plat_name ):
188
188
super ().run ()
189
189
You can’t perform that action at this time.
0 commit comments