From 9d2be8a441b03ebd3c01b187cc7c6f42bc20f297 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 7 Oct 2026 14:17:40 -0400 Subject: [PATCH] chore: require Python 3.11+ in examples Bump the Rust example from 3.10 to 3.11 and update the intro notebook to say the course uses Python 3.14. Assisted-by: ClaudeCode:claude-opus-5-5 --- content/week00_intro/programming_basics.ipynb | 2 +- content/week09_binding/06-rust.md | 4 ++-- content/week09_binding/06-rust/.github/workflows/CI.yml | 6 +++--- content/week09_binding/06-rust/Cargo.toml | 2 +- content/week09_binding/06-rust/pyproject.toml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/content/week00_intro/programming_basics.ipynb b/content/week00_intro/programming_basics.ipynb index 9a0d866..366190f 100644 --- a/content/week00_intro/programming_basics.ipynb +++ b/content/week00_intro/programming_basics.ipynb @@ -33,7 +33,7 @@ "\n", "Just to keep the computational model straight, we are using:\n", "\n", - "* Python 3.12 (3.11+ recommended), an interpreted programming language\n", + "* Python 3.14 (3.11+ recommended), an interpreted programming language\n", "* A REPL, which **R**eads a line, **E**valuates it, then **P**rints it (in a **L**oop)\n", " - `print` not needed to see the last un-captured value in a cell\n", "* IPython, which is an enhancement to make Python more **I**nteractive\n", diff --git a/content/week09_binding/06-rust.md b/content/week09_binding/06-rust.md index 0949c9a..75e417a 100644 --- a/content/week09_binding/06-rust.md +++ b/content/week09_binding/06-rust.md @@ -45,7 +45,7 @@ name = "rust_example" crate-type = ["cdylib"] [dependencies] -pyo3 = {version = "0.27.1", features = ["abi3-py310"]} +pyo3 = {version = "0.27.1", features = ["abi3-py311"]} ``` The standard rust package stuff is at the top. The `lib` table has the library @@ -70,7 +70,7 @@ build-backend = "maturin" [project] name = "rust_example" -requires-python = ">=3.10" +requires-python = ">=3.11" classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: Implementation :: CPython", diff --git a/content/week09_binding/06-rust/.github/workflows/CI.yml b/content/week09_binding/06-rust/.github/workflows/CI.yml index e50912a..ad600f7 100644 --- a/content/week09_binding/06-rust/.github/workflows/CI.yml +++ b/content/week09_binding/06-rust/.github/workflows/CI.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Build wheels uses: PyO3/maturin-action@v1 with: @@ -67,7 +67,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" architecture: ${{ matrix.platform.target }} - name: Build wheels uses: PyO3/maturin-action@v1 @@ -94,7 +94,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Build wheels uses: PyO3/maturin-action@v1 with: diff --git a/content/week09_binding/06-rust/Cargo.toml b/content/week09_binding/06-rust/Cargo.toml index 8bd4bc4..4092a21 100644 --- a/content/week09_binding/06-rust/Cargo.toml +++ b/content/week09_binding/06-rust/Cargo.toml @@ -9,4 +9,4 @@ name = "rust_example" crate-type = ["cdylib"] [dependencies] -pyo3 = {version = "0.27.1", features = ["abi3-py310"]} +pyo3 = {version = "0.27.1", features = ["abi3-py311"]} diff --git a/content/week09_binding/06-rust/pyproject.toml b/content/week09_binding/06-rust/pyproject.toml index 6dee652..a7c94e0 100644 --- a/content/week09_binding/06-rust/pyproject.toml +++ b/content/week09_binding/06-rust/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "rust_example" -requires-python = ">=3.10" +requires-python = ">=3.11" classifiers = [ "Programming Language :: Rust", "Programming Language :: Python :: Implementation :: CPython",