Skip to content

Commit

Permalink
Add Python 3.13 support
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Oct 24, 2024
1 parent 2dd657d commit 911ebdd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12" # use the latest version of Python because it is faster
python-version: "3.13" # use the latest version of Python because it is faster

- name: Install python dependencies.
run: pip install -r pytests/requirements.txt
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- python-3-13-support
tags:
- 'v*.*.*'
workflow_dispatch:
Expand All @@ -29,10 +30,10 @@ jobs:
- os: windows
target: i686
python-architecture: x86
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
- os: windows
target: aarch64
interpreter: 3.11 3.12
interpreter: 3.11 3.12, 3.13

- os: macos
target: x86_64
Expand All @@ -51,13 +52,13 @@ jobs:
target: aarch64
- os: ubuntu
target: armv7
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
- os: ubuntu
target: ppc64le
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13
- os: ubuntu
target: s390x
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 3.13

- os: ubuntu
target: x86_64
Expand Down Expand Up @@ -90,7 +91,7 @@ jobs:
target: ${{ matrix.target }}
manylinux: ${{ matrix.manylinux || 'auto' }}
container: ${{ matrix.container }}
args: --release --out dist --interpreter ${{ matrix.maturin-interpreter || matrix.interpreter || '3.7 3.8 3.9 3.10 3.11 3.12 pypy3.7 pypy3.8 pypy3.9 pypy3.10' }} ${{ matrix.extra-build-args }}
args: --release --out dist --interpreter ${{ matrix.maturin-interpreter || matrix.interpreter || '3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.7 pypy3.8 pypy3.9 pypy3.10' }} ${{ matrix.extra-build-args }}
rust-toolchain: 1.76.0
docker-options: -e CI

Expand All @@ -109,7 +110,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-12, macos-14 ]
interpreter: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
interpreter: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
exclude:
- os: macos-14
interpreter: '3.7'
Expand Down Expand Up @@ -207,7 +208,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

- name: Get dist artifacts.
uses: actions/download-artifact@v4
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[package]
name = "libipld"
version = "2.0.0"
version = "2.0.1"
edition = "2021"
license = "MIT"
description = "Python binding to the Rust IPLD library"
authors = ["Ilya (Marshal) <ilya@marshal.dev>"]
keywords = ["python", "binding", "library", "lib", "ipld", "cid", "multibase", "multihash", "dag", "cbor", "json", "pb", "dag-cbor", "dag-json", "dag-pb"]
keywords = ["python", "binding", "library", "lib", "ipld", "cid", "multibase", "multihash", "dag", "cbor", "json", "pb", "dag-cbor", "dag-json"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "libipld"
crate-type = ["rlib", "cdylib"]

[dependencies]
pyo3 = { version = "0.22.2", features = ["generate-import-lib", "anyhow"] }
python3-dll-a = "0.2.7"
pyo3 = { version = "0.22.5", features = ["generate-import-lib", "anyhow"] }
python3-dll-a = "0.2.10"
anyhow = "1.0.75"
libipld = { version = "0.16.0", features = ["dag-cbor"] }
multibase = "0.9"
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [
license = "MIT"
repository = "https://github.com/MarshalX/python-libipld"
readme = "README.md"
keywords = ["library", "lib", "ipld", "cid", "multibase", "multihash", "dag", "cbor", "json", "pb", "dag-cbor", "dag-json", "dag-pb"]
keywords = ["library", "lib", "ipld", "cid", "multibase", "multihash", "dag", "cbor", "json", "pb", "dag-cbor", "dag-json"]
requires-python = ">=3.7"
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand All @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Pre-processors",
Expand Down

0 comments on commit 911ebdd

Please sign in to comment.