Debian Codegraph @

release-pypi-windows.cmd

raw
1 @echo off
2 setlocal EnableDelayedExpansion
3
4 python -m pip install --upgrade pip cibuildwheel twine
5 if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
6
7 SET CIBW_BUILD=cp310-* cp311-* cp312-* cp313-* cp314-*
8 SET CIBW_ARCHS=AMD64
9 SET CIBW_ENVIRONMENT=VERSION="%VERSION%"
10 SET CIBW_TEST_REQUIRES=pytest
11 SET CIBW_TEST_COMMAND=pytest {project}/python/tests
12
13 python -m cibuildwheel --output-dir wheelhouse
14 if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
15
16 if NOT "%~1"=="testonly" (
17 REM Upload to PyPI
18 python -m twine upload wheelhouse/*.whl
19 )