From 036c04d9379c26e29744de3e9164cff9668aaebe Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Wed, 15 Sep 2021 11:03:04 +0200 Subject: [PATCH 1/3] Split up wheel building for aarch64 --- .github/workflows/ci.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6dc99d45..b3f744ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -163,6 +163,12 @@ jobs: strategy: matrix: os: ["macos-latest", "ubuntu-latest", "windows-latest"] + cibw_archs_linux: ["x86_64"] + build_sdist: [true] + include: + - os: "ubuntu-latest" + cibw_archs_linux: "aarch64" + build_sdist: false steps: - uses: actions/checkout@v2.3.4 with: @@ -189,9 +195,7 @@ jobs: run: cibuildwheel --output-dir dist env: CIBW_SKIP: "*-win32 *-manylinux_i686" # Skip 32 bit. - CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014" - CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux2014" - CIBW_ARCHS_LINUX: "x86_64 aarch64" + CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux }} # Fully test the build wheels again. CIBW_TEST_REQUIRES: "pytest" # Simple test that requires the project to be build correctly @@ -200,8 +204,12 @@ jobs: {project}/tests/test_compat.py {project}/tests/test_igzip_lib.py - name: Build sdist - if: "runner.os == 'Linux'" - run: python setup.py sdist + if: "runner.os == 'Linux' and ${{ matrix.build_sdist }}" + run: bash -c 'pip install cython && python setup.py sdist' + - uses: actions/upload-artifact@v2 + with: + name: "dist" + path: "dist/" - name: Publish package to TestPyPI # pypa/gh-action-pypi-publish@master does not work on OSX # Alpha, Beta and dev releases contain a - in the tag. From 3564569b8f22871ed76b84c185941e1588e32ab5 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Wed, 15 Sep 2021 15:54:42 +0200 Subject: [PATCH 2/3] Add deployment process change to changelog --- CHANGELOG.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d50cd6ad..a833d432 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,8 @@ Changelog version 1.0.0-dev ------------------ ++ Due to a change in the deployment process wheels should work for older + versions of pip. + Added a ``igzip_lib.decompressobj`` function to initiate an IgzipDecompressor class. + Added a ``crc`` property to the IgzipDecompressor class. Depending on the From b23e51d1cebdb7e9266de02ec56f07edef9a39e9 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman Date: Wed, 15 Sep 2021 15:58:00 +0200 Subject: [PATCH 3/3] Ignore doc updates --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3f744ed..8215a742 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,9 @@ name: Continous integration on: pull_request: + paths-ignore: + - 'docs/**' + - '*.rst' push: branches: - develop