Skip to content

Commit 0c3649f

Browse files
committed
This is gonna work
1 parent 7160548 commit 0c3649f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/dist.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,10 @@ jobs:
140140
if: runner.os == 'Windows'
141141

142142
- name: Install
143-
shell: bash
144143
working-directory: dist
145144
run: python -m pip --disable-pip-version-check install *.whl
146145

147146
- name: Install test dependencies
148-
shell: bash
149147
working-directory: tests
150148
run: python -m pip --disable-pip-version-check install -r requirements.txt
151149

src/semiwrap/cmd_make_pyi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import inspect
1010
from os.path import dirname, join
1111
import pathlib
12+
import shutil
1213
import sys
1314
import tempfile
1415
import typing as T
@@ -56,7 +57,7 @@ def _write_pyi(package_name, generated_pyi: T.Dict[pathlib.PurePath, pathlib.Pat
5657
tmpdir_pth = pathlib.Path(tmpdir)
5758
for infile, output in generated_pyi.items():
5859
output.unlink(missing_ok=True)
59-
(tmpdir_pth / infile).rename(output)
60+
shutil.move(tmpdir_pth / infile, output)
6061

6162

6263
def main():

0 commit comments

Comments
 (0)