From acc42005e3e9444f8d83906b721cd1827bc5c7c6 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 28 Feb 2021 21:45:23 -0500 Subject: build: build 3.10 wheels --- .github/workflows/kit.yml | 174 +++++++++++++++++++++++++++++----------------- requirements/pins.pip | 2 +- 2 files changed, 112 insertions(+), 64 deletions(-) diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml index 854b4f29..fd7065f7 100644 --- a/.github/workflows/kit.yml +++ b/.github/workflows/kit.yml @@ -8,14 +8,108 @@ name: "Kits" on: workflow_dispatch: + push: + branches: + - "nedbat/310-kits" defaults: run: shell: bash jobs: - build_wheels: - name: "Build wheels on ${{ matrix.os }}" + #build_wheels: + # name: "Build wheels on ${{ matrix.os }}" + # runs-on: ${{ matrix.os }} + # strategy: + # matrix: + # os: + # - ubuntu-latest + # - windows-latest + # - macos-latest + # fail-fast: false + # + # steps: + # - name: "Check out the repo" + # uses: actions/checkout@v2 + # + # - name: "Install Python 3.7" + # uses: actions/setup-python@v2 + # with: + # python-version: "3.7" + # + # - name: "Install cibuildwheel" + # run: | + # python -m pip install -c requirements/pins.pip cibuildwheel + # + # - name: "Install Visual C++ for Python 2.7" + # if: runner.os == 'Windows' + # run: | + # choco install vcpython27 -f -y + # + # - name: "Build wheels" + # env: + # # Don't build wheels for PyPy. + # CIBW_SKIP: pp* + # run: | + # python -m cibuildwheel --output-dir wheelhouse + # + # - name: "Upload wheels" + # uses: actions/upload-artifact@v2 + # with: + # name: dist + # path: ./wheelhouse/*.whl + # + #build_sdist: + # name: "Build source distribution" + # runs-on: ubuntu-latest + # steps: + # - name: "Check out the repo" + # uses: actions/checkout@v2 + # + # - name: "Install Python 3.7" + # uses: actions/setup-python@v2 + # with: + # python-version: "3.7" + # + # - name: "Build sdist" + # run: | + # python setup.py sdist + # + # - name: "Upload sdist" + # uses: actions/upload-artifact@v2 + # with: + # name: dist + # path: dist/*.tar.gz + # + #build_pypy: + # name: "Build PyPy wheels" + # runs-on: ubuntu-latest + # steps: + # - name: "Check out the repo" + # uses: actions/checkout@v2 + # + # - name: "Install PyPy" + # uses: actions/setup-python@v2 + # with: + # python-version: "pypy3" + # + # - name: "Install requirements" + # run: | + # pypy3 -m pip install -r requirements/wheel.pip + # + # - name: "Build wheels" + # run: | + # pypy3 setup.py bdist_wheel --python-tag pp36 + # pypy3 setup.py bdist_wheel --python-tag pp37 + # + # - name: "Upload wheels" + # uses: actions/upload-artifact@v2 + # with: + # name: dist + # path: dist/*.whl + + three_ten: + name: "Build 3.10 wheels on ${{ matrix.os }}" runs-on: ${{ matrix.os }} strategy: matrix: @@ -23,81 +117,35 @@ jobs: - ubuntu-latest - windows-latest - macos-latest + python-abi: + - cp310-cp310 fail-fast: false steps: - name: "Check out the repo" uses: actions/checkout@v2 - - name: "Install Python 3.7" + - name: "Install Python 3.10" uses: actions/setup-python@v2 with: - python-version: "3.7" + python-version: "3.10.0-alpha.5" - - name: "Install cibuildwheel" + - name: "Install wheel" run: | - python -m pip install -c requirements/pins.pip cibuildwheel + python -m pip install -c requirements/pins.pip -r requirements/wheel.pip - - name: "Install Visual C++ for Python 2.7" - if: runner.os == 'Windows' + - name: "Build wheel" run: | - choco install vcpython27 -f -y + python setup.py bdist_wheel - - name: "Build wheels" - env: - # Don't build wheels for PyPy. - CIBW_SKIP: pp* + - name: Convert manylinux2010_x86_64 wheel + if: runner.os == 'Linux' run: | - python -m cibuildwheel --output-dir wheelhouse - - - name: "Upload wheels" - uses: actions/upload-artifact@v2 - with: - name: dist - path: ./wheelhouse/*.whl - - build_sdist: - name: "Build source distribution" - runs-on: ubuntu-latest - steps: - - name: "Check out the repo" - uses: actions/checkout@v2 - - - name: "Install Python 3.7" - uses: actions/setup-python@v2 - with: - python-version: "3.7" - - - name: "Build sdist" - run: | - python setup.py sdist - - - name: "Upload sdist" - uses: actions/upload-artifact@v2 - with: - name: dist - path: dist/*.tar.gz - - build_pypy: - name: "Build PyPy wheels" - runs-on: ubuntu-latest - steps: - - name: "Check out the repo" - uses: actions/checkout@v2 - - - name: "Install PyPy" - uses: actions/setup-python@v2 - with: - python-version: "pypy3" - - - name: "Install requirements" - run: | - pypy3 -m pip install -r requirements/wheel.pip - - - name: "Build wheels" - run: | - pypy3 setup.py bdist_wheel --python-tag pp36 - pypy3 setup.py bdist_wheel --python-tag pp37 + ls -la dist/ + auditwheel show dist/*-${{ matrix.python-abi }}-linux_x86_64.whl + auditwheel repair dist/*-${{ matrix.python-abi }}-linux_x86_64.whl + ls -l wheelhouse/ + auditwheel show wheelhouse/*-${{ matrix.python-abi }}-manylinux2010_x86_64.whl - name: "Upload wheels" uses: actions/upload-artifact@v2 diff --git a/requirements/pins.pip b/requirements/pins.pip index 04721c8b..a6053a9c 100644 --- a/requirements/pins.pip +++ b/requirements/pins.pip @@ -8,4 +8,4 @@ tox-gh-actions==2.2.0 # setuptools 45.x is py3-only setuptools==44.1.1 -wheel==0.35.1 +wheel==0.36.2 -- cgit v1.2.1