From 4e9855fe6270155ef4f6873b3be9ab2599ed842e Mon Sep 17 00:00:00 2001 From: Stefan Jansen Date: Tue, 11 Jul 2023 17:32:58 -0400 Subject: [PATCH] fix python-version --- .github/workflows/build_wheels.yml | 70 +++++------------------------- 1 file changed, 12 insertions(+), 58 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 3aebebc8ce..25d9bcaa69 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -16,57 +16,10 @@ jobs: strategy: fail-fast: false matrix: - include: - # Window 64 bit - # Note: windows-2019 is needed for older Python versions: - - os: windows-2019 - python: 38 - platform_id: win_amd64 - - os: windows-latest - python: 39 - platform_id: win_amd64 - - os: windows-latest - python: 310 - platform_id: win_amd64 - - os: windows-latest - python: 311 - platform_id: win_amd64 - - # Linux 64 bit manylinux2014 - - os: ubuntu-latest - python: 38 - platform_id: manylinux_x86_64 - manylinux_image: manylinux2014 - - os: ubuntu-latest - python: 39 - platform_id: manylinux_x86_64 - manylinux_image: manylinux2014 - - # NumPy on Python 3.10 only supports 64bit and is only available with manylinux2014 - - os: ubuntu-latest - python: 310 - platform_id: manylinux_x86_64 - manylinux_image: manylinux2014 - - os: ubuntu-latest - python: 311 - platform_id: manylinux_x86_64 - manylinux_image: manylinux2014 - - # MacOS x86_64 - - os: macos-latest - python: 38 - platform_id: macosx_x86_64 - - os: macos-latest - python: 39 - platform_id: macosx_x86_64 - - os: macos-latest - python: 310 - platform_id: macosx_x86_64 - - os: macos-latest - python: 311 - platform_id: macosx_x86_64 - - # os: [ ubuntu-latest , windows-latest, macos-latest ] + os: [ ubuntu-latest , windows-latest, macos-latest ] + cibw_build: [ "cp38-* cp39-* cp310-* cp311-*" ] + cibw_arch: [ "native" ] + # python: [ 38, 39, 310, 311 ] # arch: [ auto64 ] @@ -76,10 +29,10 @@ jobs: with: fetch-depth: 0 - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python }} + # - name: Setup Python + # uses: actions/setup-python@v4 + # with: + # python-version: ${{ matrix.python }} - name: Set Xcode version uses: maxim-lobanov/setup-xcode@v1 @@ -93,9 +46,10 @@ jobs: env: CIBW_BEFORE_ALL_LINUX: ./tools/install_talib.sh CIBW_BEFORE_ALL_MACOS: brew install ta-lib - CIBW_ARCHS_LINUX: ${{ matrix.arch }} + CIBW_ARCHS_LINUX: ${{ matrix.cibw_arch }} CIBW_ARCHS_MACOS: x86_64 arm64 - CIBW_BUILD: "cp${{ matrix.python }}-*" +# CIBW_BUILD: "cp${{ matrix.python }}-*" + CIBW_BUILD: ${{ matrix.cibw_build }} CIBW_SKIP: "*-musllinux_*" CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.15 @@ -131,7 +85,7 @@ jobs: - uses: actions/setup-python@v4 name: Install Python with: - python-version: '3.9' + python-version: '3.11' - name: Build sdist run: |