File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 21
21
import os .path
22
22
import shutil
23
23
import subprocess
24
+ import sys
24
25
import tempfile
25
26
from textwrap import dedent
26
27
from typing import Optional
@@ -285,8 +286,8 @@ def main(
285
286
copy_changelog (distribution , tmpdir )
286
287
current_dir = os .getcwd ()
287
288
os .chdir (tmpdir )
288
- subprocess .run (["python3" , "setup.py" , "bdist_wheel" ])
289
- subprocess .run (["python3" , "setup.py" , "sdist" ])
289
+ subprocess .run ([sys . executable , "setup.py" , "bdist_wheel" ])
290
+ subprocess .run ([sys . executable , "setup.py" , "sdist" ])
290
291
os .chdir (current_dir )
291
292
return f"{ tmpdir } /dist"
292
293
Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ def test_collect_setup_entries() -> None:
81
81
"__init__.pyi" ,
82
82
"a.pyi" ,
83
83
"b.pyi" ,
84
- "c/ __init__.pyi" ,
85
- "c/ d.pyi" ,
86
- "c/ e.pyi" ,
84
+ os . path . join ( "c" , " __init__.pyi") ,
85
+ os . path . join ( "c" , " d.pyi") ,
86
+ os . path . join ( "c" , " e.pyi") ,
87
87
"METADATA.toml" ,
88
88
]
89
89
}
@@ -93,7 +93,7 @@ def test_collect_setup_entries() -> None:
93
93
assert entries == (
94
94
{
95
95
"nspkg-stubs" : [
96
- "innerpkg/ __init__.pyi" ,
96
+ os . path . join ( "innerpkg" , " __init__.pyi") ,
97
97
"METADATA.toml" ,
98
98
]
99
99
}
You can’t perform that action at this time.
0 commit comments