Skip to content

Commit

Permalink
Update cython/ci build for Python 3.13 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshilliard authored Oct 9, 2024
1 parent d8753a2 commit b5373a2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ jobs:
build-sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: build
run: |
pip install -r requirements.txt
python -m build -s
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: sdist
path: dist
Expand All @@ -27,16 +27,16 @@ jobs:
name: Build wheels on ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
Expand All @@ -48,14 +48,25 @@ jobs:
python -m build -s # to run Cythonize
- name: Build
uses: pypa/cibuildwheel@v2.15.0
uses: pypa/cibuildwheel@v2.21.2
env:
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
CIBW_SKIP: pp*

- name: Upload Wheels to artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Wheels
name: Wheels-${{ matrix.os }}
path: wheelhouse

merge:
runs-on: ubuntu-latest
needs: build
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: Wheels
pattern: Wheels-*
delete-merged: true
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[metadata]
name = wsaccel
version = 0.6.6
requires-python = >=3.9
requires_python = >=3.9
description = Accelerator for ws4py and AutobahnPython
maintainer = Inada Naoki
maintainer_email = [email protected]
url = https://github.com/methane/wsaccel
license = Apache 2.0
long_description = file: README.md
long_description = file: README.rst
long_description_content_type = text/x-rst
classifiers=
Intended Audience :: Developers
Expand All @@ -18,4 +18,5 @@ classifiers=
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: Implementation :: CPython
1 change: 1 addition & 0 deletions wsaccel/utf8validator.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# cython: language_level=3
# coding=utf-8

###############################################################################
Expand Down
1 change: 1 addition & 0 deletions wsaccel/xormask.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# cython: language_level=3
from cpython.buffer cimport *
from cpython.bytes cimport *

Expand Down

0 comments on commit b5373a2

Please sign in to comment.