Skip to content

Commit

Permalink
Updated changelog and github packaging action
Browse files Browse the repository at this point in the history
  • Loading branch information
mliberty1 committed May 8, 2024
1 parent f62e459 commit 8ef60c5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
echo "runner.arch=$RUNNER_ARCH"
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand All @@ -67,25 +67,26 @@ jobs:
run: pytest

- name: Upload python source package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
if-no-files-found: error

build_wheels:
name: Build on ${{ matrix.os }}
name: Build on ${{ matrix.os }}, python=${{ matrix.python_version }}
needs:
- build_sdist
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python_version: ["cp39", "cp310", "cp311", "cp312"]

steps:
- name: Download sdist
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: sdist
path: dist/
Expand All @@ -95,22 +96,29 @@ jobs:
id: find_sdist_filename
run: echo "filename=$(ls dist/*.tar.gz)" >> $GITHUB_OUTPUT

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.17.0

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: universal2
CIBW_ARCHS_WINDOWS: native
CIBW_ARCHS_LINUX: native
# skip PyPy: Cython only supports CPython
# skip musllinux: build takes too long with default os images.
CIBW_SKIP: 'pp* *musllinux*'
CIBW_BUILD: '${{ matrix.python_version }}-*'
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest {package}/test
with:
package-dir: ${{ steps.find_sdist_filename.outputs.filename }}
run: python -m cibuildwheel ${{ steps.find_sdist_filename.outputs.filename }}

- name: Upload python wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
path: wheelhouse/*.whl
Expand All @@ -129,13 +137,13 @@ jobs:

steps:
- name: Download python sdist artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: sdist
path: dist/

- name: Download python wheel artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: wheels
path: dist/
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
This file contains the list of changes made to pymonocypher.


## 4.0.2.1

2024 May 8

* Upgraded Monocypher from 3.1.3 to 4.0.2.
* Removed incremental SignatureVerify, which was removed from Monocypher.


## 3.1.3.2

2023 Jun 7
Expand Down

0 comments on commit 8ef60c5

Please sign in to comment.