Skip to content

Commit

Permalink
clean up the list-wheels sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Oct 25, 2023
1 parent 9dacc88 commit ba95432
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import pathlib
import shutil
import tempfile

import nox
from packaging.requirements import Requirement
Expand Down Expand Up @@ -366,16 +365,13 @@ def _get_wheels(session):

wheels = []
for platform in platforms:
with tempfile.TemporaryFile("w+") as fp:
session.run(
"cibuildwheel",
"--print-build-identifiers",
"--platform",
platform,
stdout=fp,
)
fp.seek(0)
wheels += fp.read().splitlines()
wheels += session.run(
"cibuildwheel",
"--print-build-identifiers",
"--platform",
platform,
silent=True,
).splitlines()
return wheels


Expand Down

0 comments on commit ba95432

Please sign in to comment.