Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Continous integration

on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.rst'
push:
branches:
- develop
Expand Down Expand Up @@ -163,6 +166,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:
Expand All @@ -189,9 +198,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
Expand All @@ -200,8 +207,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'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, the modern way to build an sdist is with build with something like "pip install build && python -m build --sdist"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sharing! That is incorporated now!

- 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.
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down