Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
os:
- ubuntu-20.04
- ubuntu-24.04
- windows-2019
- macos-11

steps:
- uses: actions/checkout@v4
Expand All @@ -23,7 +27,7 @@ jobs:
uses: pypa/[email protected]
env:
CIBW_ARCHS: all
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl

Expand All @@ -34,6 +38,6 @@ jobs:
- uses: actions/checkout@v4
- name: Build SDist
run: pipx run build --sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
path: dist/*.tar.gz
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ on:
name: Test
jobs:
pytest:
strategy:
matrix:
python-version:
- "3.10"
- "3.12"
- "3.13"
name: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}
architecture: "x64"
- run: python -m pip install -U pip wheel setuptools
- run: python -m pip install -r test-requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion bencoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ cdef encode_dict(x, list r):
encode_func = {
int: encode_int,
bool: encode_int,
long: encode_long,
int: encode_long,
bytes: encode_bytes,
str: encode_string,
list: encode_list,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["cython>=0.29.32", "setuptools>=58.0", "wheel"]
requires = ["cython>=3", "setuptools>=58.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.cibuildwheel]
Expand Down