Skip to content

Commit

Permalink
Update GH actions for Python 3.12 wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimes committed Dec 22, 2023
1 parent f523077 commit ff2babb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
build:
strategy:
matrix:
os: [macos-12, windows-2022, ubuntu-22.04]
python-version: [3.8, 3.9, "3.10", "3.11"]
os: [macOS-13, windows-2022, ubuntu-22.04]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/superlinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# Runs the Super-Linter action
- name: Run Super-Linter
uses: github/super-linter@v5
uses: github/super-linter@v5.7.2
env:
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,51 +34,51 @@ jobs:
archs: x86
- os: windows-2022
archs: ARM64
- os: macOS-12
- os: macOS-13
archs: x86_64
- os: macOS-12
- os: macOS-13
archs: arm64
- os: macOS-12
- os: macOS-13
archs: universal2
steps:
- name: Checkout
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: '3.11'
python-version: '3.12'
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Build wheels
uses: pypa/cibuildwheel@v2.14.0
uses: pypa/cibuildwheel@v2.16.2
with:
output-dir: wheelhouse
env:
CIBW_BUILD: "{cp38,cp39,cp310,cp311}-${{ matrix.build }}*"
CIBW_BUILD: "{cp38,cp39,cp310,cp311,cp312}-${{ matrix.build }}*"
CIBW_SKIP: ${{ github.event.inputs.cibw_skip }}
CIBW_ARCHS: ${{ matrix.archs }}
CIBW_BUILD_FRONTEND: 'build'
CIBW_TEST_REQUIRES: 'pytest'
CIBW_TEST_COMMAND: 'pytest {project}'
# Until the day Apple silicon instances are available on GH Actions
CIBW_TEST_SKIP: '*-win_arm64 *-macosx_arm64'
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
build_sdist:
name: Build a source distribution
runs-on: ubuntu-22.04
steps:
- name: Checkout
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: '3.11'
python-version: '3.12'
- name: Build sdist
run: python setup.py build sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
publish:
Expand All @@ -89,9 +89,9 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Set up built items
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "mmh3"
version = "4.0.1"
version = "4.1.0-alpha"
description = "Python extension for MurmurHash (MurmurHash3), a set of fast and robust hash functions."
readme = "README.md"
license = {file = "LICENSE"}
Expand All @@ -21,6 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities"
]
Expand Down

0 comments on commit ff2babb

Please sign in to comment.