Skip to content

Commit

Permalink
Update cython/ci build for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshilliard committed Oct 8, 2024
1 parent d8753a2 commit 953bff9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
16 changes: 8 additions & 8 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,14 @@ 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
path: wheelhouse
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 953bff9

Please sign in to comment.