Skip to content

Commit

Permalink
chore(ci): adapt before-build for windows
Browse files Browse the repository at this point in the history
The `rm` and `mv` commands don't work well within Windows' default
shell. As a result, a separate script for Windows is required.

Signed-off-by: JP-Ellis <josh@jpellis.me>
  • Loading branch information
JP-Ellis committed Mar 7, 2024
1 parent c37e839 commit 7a19532
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,11 @@ assert isinstance(pact.v3.ffi.version(), str);\""""
# The repair tool unfortunately did not like the bundled Ruby distributable.
# TODO: Check whether delocate-wheel can be configured.
repair-wheel-command = ""

[tool.cibuildwheel.windows]
before-build = [
'FOR /R src\pact\v3 %G IN (_ffi.*) DO IF NOT %~nxG == _ffi.pyi DEL /F /Q "%G"',
'IF EXIST src\pact\v3\bin\ RMDIR /S /Q src\pact\v3\bin',
'IF EXIST src\pact\v3\data\ RMDIR /S /Q src\pact\v3\data',
'IF EXIST src\pact\v3\lib\ RMDIR /S /Q src\pact\v3\lib',
]

0 comments on commit 7a19532

Please sign in to comment.