Skip to content

Commit

Permalink
Merge pull request #49 from KaveIO/macos_arm
Browse files Browse the repository at this point in the history
Source distribution fix and Apple silicone wheels
  • Loading branch information
mbaak committed Mar 21, 2022
2 parents 2c253fb + 3a17105 commit 932f540
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,14 @@ on:
- published

jobs:
build_sdist:
name: Build SDist
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-python@v3

- name: Install deps
run: python -m pip install twine build

- name: Build SDist
run: python -m build -s

- name: Check metadata
run: twine check dist/*
run: pipx run build --sdist

- uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -61,6 +51,7 @@ jobs:
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: pytest {project}/tests/phik_python/test_phik.py
CIBW_ARCHS: "auto64"
CIBW_ARCHS_MACOS: "x86_64 arm64"
# Skip 32-bit builds
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_x86_64"

Expand All @@ -78,14 +69,10 @@ jobs:
path: wheelhouse/*.whl

upload_all:
name: Upload if release
needs: [build_wheels, build_sdist]
needs: [build_wheels, make_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/setup-python@v3

- uses: actions/download-artifact@v2
with:
name: artifact
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Release notes
=============

Version 0.12.2, Mar 2022
------------------------

- Fix missing setup.py and pyproject.toml in source distribution
- Support wheels ARM MacOS (Apple silicone)

Version 0.12.1, Mar 2022
------------------------

Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ include NOTICE
include LICENSE
include CMakeLists.txt
include phik/simcore/CMakeLists.txt
include pyproject.toml
include setup.py
recursive-include phik *.hpp
recursive-include phik *.cpp

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Phi_K Correlation Analyzer Library
==================================

* Version: 0.12.1. Released: Mar 2022
* Version: 0.12.2. Released: Mar 2022
* Release notes: https://github.com/KaveIO/PhiK/blob/master/CHANGES.rst
* Repository: https://github.com/kaveio/phik
* Documentation: https://phik.readthedocs.io
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

MAJOR = 0
REVISION = 12
PATCH = 1
PATCH = 2
DEV = False

# note: also update README.rst, CHANGES.rst
Expand Down

0 comments on commit 932f540

Please sign in to comment.