From aec23c29bbd38b792c3e9b0eba5a0cf06170c7a4 Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@example.com> Date: Sat, 27 Sep 2025 20:17:01 +0000 Subject: [PATCH 1/4] fix: cython 3 compatibility --- bencoder.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bencoder.pyx b/bencoder.pyx index 6bd214d..9571418 100644 --- a/bencoder.pyx +++ b/bencoder.pyx @@ -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, From 1d47722bb9382040a3e079bff4edb763a2017dec Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@example.com> Date: Sat, 27 Sep 2025 20:17:03 +0000 Subject: [PATCH 2/4] ci: test on ubuntu-24.04,python3.12,python3.13 --- .github/workflows/build.yml | 8 ++++++-- .github/workflows/test.yml | 8 +++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5fe6e3..bf780a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -36,4 +40,4 @@ jobs: run: pipx run build --sdist - uses: actions/upload-artifact@v3 with: - path: dist/*.tar.gz \ No newline at end of file + path: dist/*.tar.gz diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7a9dbb..a48ab7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 From df06a9fcb9b68a76bb5b06d4868a8125f406564d Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@example.com> Date: Sat, 27 Sep 2025 20:17:07 +0000 Subject: [PATCH 3/4] ci: upgrade deprecated action fixes: Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v3`. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf780a9..fedc295 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: uses: pypa/cibuildwheel@v2.16.2 env: CIBW_ARCHS: all - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: ./wheelhouse/*.whl @@ -38,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 From 546fdfa92d8a930293432cd4978ee7e67386256f Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@example.com> Date: Sat, 27 Sep 2025 20:18:36 +0000 Subject: [PATCH 4/4] chore(dependencies): bump cython to v3 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f890cb0..8da8fa3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]