From 57baaaa88a81322de08f7001ee7179a7d9634c74 Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Thu, 16 Jan 2025 15:19:14 -0700 Subject: [PATCH] add support for free-threaded wheels --- .github/workflows/wheel-builder.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/wheel-builder.yml b/.github/workflows/wheel-builder.yml index cdb5b65f..d32e23d6 100644 --- a/.github/workflows/wheel-builder.yml +++ b/.github/workflows/wheel-builder.yml @@ -50,6 +50,7 @@ jobs: - { VERSION: "cp38-cp38", ABI_VERSION: 'cp38' } - { VERSION: "cp39-cp39", ABI_VERSION: 'cp39' } - { VERSION: "pp310-pypy310_pp73" } + - { VERSION: "cp313-cp313t" } MANYLINUX: - { NAME: "manylinux2014_x86_64", CONTAINER: "cryptography-manylinux2014:x86_64", RUNNER: "ubuntu-latest" } - { NAME: "manylinux_2_28_x86_64", CONTAINER: "cryptography-manylinux_2_28:x86_64", RUNNER: "ubuntu-latest"} @@ -133,24 +134,22 @@ jobs: PYTHON: - VERSION: '3.11' ABI_VERSION: 'cp38' - DOWNLOAD_URL: 'https://www.python.org/ftp/python/3.11.3/python-3.11.3-macos11.pkg' - BIN_PATH: '/Library/Frameworks/Python.framework/Versions/3.11/bin/python3' - VERSION: '3.11' ABI_VERSION: 'cp39' - DOWNLOAD_URL: 'https://www.python.org/ftp/python/3.11.3/python-3.11.3-macos11.pkg' - BIN_PATH: '/Library/Frameworks/Python.framework/Versions/3.11/bin/python3' + - VERSION: '3.13t' name: "Python ${{ matrix.PYTHON.VERSION }} for ABI ${{ matrix.PYTHON.ABI_VERSION }} on macOS" steps: - - run: | - curl "${{ matrix.PYTHON.DOWNLOAD_URL }}" -o python.pkg - sudo installer -pkg python.pkg -target / + - name: Setup python + uses: quansight-labs/setup-python@v5.3.1 + with: + python-version: ${{ matrix.PYTHON.VERSION }} - uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203 with: toolchain: stable # Add the arm64 target in addition to the native arch (x86_64) target: aarch64-apple-darwin - - run: ${{ matrix.PYTHON.BIN_PATH }} -m venv venv + - run: python -m venv venv - run: venv/bin/pip install -U pip wheel setuptools-rust - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: @@ -190,13 +189,14 @@ jobs: PYTHON: - {VERSION: "3.11", ABI_VERSION: "cp38"} - {VERSION: "3.11", ABI_VERSION: "cp39"} + - {VERSION: "3.13t"} name: "${{ matrix.PYTHON.VERSION }} ${{ matrix.PYTHON.ABI_VERSION }} ${{ matrix.WINDOWS.ARCH }}" steps: - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: name: bcrypt-sdist - name: Setup python - uses: actions/setup-python@v5.3.0 + uses: quansight-labs/setup-python@v5.3.1 with: python-version: ${{ matrix.PYTHON.VERSION }} architecture: ${{ matrix.WINDOWS.ARCH }}