Skip to content

Commit 6cbe073

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 940dd4b commit 6cbe073

File tree

1 file changed

+12
-5
lines changed
  • src/poetry/core/masonry/builders

1 file changed

+12
-5
lines changed

src/poetry/core/masonry/builders/wheel.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import shutil
99
import stat
1010
import subprocess
11+
import sys
1112
import tempfile
1213
import zipfile
13-
import sys
1414

1515
from base64 import urlsafe_b64encode
1616
from io import StringIO
@@ -185,7 +185,11 @@ def _build(self, wheel: zipfile.ZipFile) -> None:
185185
python_version_minor = sys.version_info[1]
186186
build_dir = self._path / "build"
187187
libs: list[Path] = list(build_dir.glob("lib.*"))
188-
scripts: list[Path] = list(build_dir.glob(f"scripts-{python_version_major}.{python_version_minor}/*"))
188+
scripts: list[Path] = list(
189+
build_dir.glob(
190+
f"scripts-{python_version_major}.{python_version_minor}/*"
191+
)
192+
)
189193
if libs:
190194
lib = libs[0]
191195

@@ -198,7 +202,7 @@ def _build(self, wheel: zipfile.ZipFile) -> None:
198202
if rel_path in wheel.namelist():
199203
continue
200204

201-
#logger.debug(f"Adding: {rel_path}")
205+
# logger.debug(f"Adding: {rel_path}")
202206
print(f"Adding: {rel_path}")
203207

204208
self._add_file(wheel, pkg, rel_path)
@@ -210,10 +214,13 @@ def _build(self, wheel: zipfile.ZipFile) -> None:
210214
self._add_file(
211215
wheel,
212216
abs_path,
213-
Path.joinpath(Path(self.wheel_data_folder), "scripts", abs_path.name),
217+
Path.joinpath(
218+
Path(self.wheel_data_folder),
219+
"scripts",
220+
abs_path.name,
221+
),
214222
)
215223

216-
217224
# The result of building the extensions
218225
# does not exist, this may due to conditional
219226
# builds, so we assume that it's okay

0 commit comments

Comments
 (0)