Skip to content

Commit

Permalink
feat: extend wheel generation to include python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Oct 25, 2024
1 parent b25484e commit c432732
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:

env:
LIB_VERSION: '2024.1.2'
PYTHON_VERSION: '3.11.7'
PYTHON_VERSION: '3.11.9'
CIBW_VERSION: '2.21.3'
CIBW_BUILD: 'cp311-*'
CIBW_BUILD: 'cp311-* cp312-*'
CIBW_SKIP: '*-musllinux_*'
CIBW_BUILD_VERBOSITY: 1

Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
CIBW_BEFORE_BUILD_MACOS: ./build.sh
CIBW_BEFORE_ALL_MACOS: ./build.sh
- uses: actions/upload-artifact@v4
with:
name: pypi-wheels-macos-${{ matrix.arch }}
Expand All @@ -129,6 +129,7 @@ jobs:
name: 'Build wheels for Linux'
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
arch: [ aarch64, native ]
steps:
Expand All @@ -153,7 +154,7 @@ jobs:
working-directory: build
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_BUILD_LINUX: ./build.sh
CIBW_BEFORE_ALL_LINUX: ./build.sh
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
Expand All @@ -180,7 +181,7 @@ jobs:
working-directory: build
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_BUILD: Powershell.exe -F ./build.ps1
CIBW_BEFORE_ALL_WINDOWS: Powershell.exe -F ./build.ps1
CIBW_ARCHS_WINDOWS: "native"
- name: clean openssl conf
shell: pwsh
Expand Down
4 changes: 2 additions & 2 deletions scripts/linux/local-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ echo activating venv-ci
source /tmp/.venv-ci/bin/activate
pip install cibuildwheel==2.21.3

export CIBW_BEFORE_BUILD='./build.sh'
export CIBW_BUILD='cp311-*'
export CIBW_BEFORE_ALL='./build.sh'
export CIBW_BUILD='cp311-* cp312-*'
export CIBW_SKIP='*-musllinux_*'
export CIBW_ARCHS='native'
export CIBW_BUILD_VERBOSITY=1
Expand Down
2 changes: 1 addition & 1 deletion scripts/mac/local-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo activating venv-ci
source /tmp/.venv-ci/bin/activate
pip3 install cibuildwheel==2.21.3

export CIBW_BEFORE_BUILD='./build.sh'
export CIBW_BEFORE_ALL='./build.sh'
export CIBW_BUILD='cp311-*'
export CIBW_SKIP='*-musllinux_*'
export CIBW_ARCHS='native'
Expand Down
2 changes: 1 addition & 1 deletion scripts/win/local-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo "Activating .venv-ci"
pip install cibuildwheel==2.21.3
ExitOnFailure("Failed to activate rotki VirtualEnv")

$env:CIBW_BEFORE_BUILD = 'PowerShell.exe -File .\build.ps1'
$env:CIBW_BEFORE_ALL = 'PowerShell.exe -File .\build.ps1'
$env:CIBW_BUILD = 'cp311-*'
$env:CIBW_ARCHS = 'native'
$env:CIBW_BUILD_VERBOSITY = 1
Expand Down

0 comments on commit c432732

Please sign in to comment.