Skip to content

chore(deps): update dependencies, add Python 3.14 and 3.15 support - #218

Merged
annie444 merged 9 commits into
mainfrom
update-deps
Dec 3, 2026
Merged

annie444 merged 9 commits into
mainfrom
update-deps

Conversation

@annie444

@annie444 annie444 commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Updates kete's Rust, Python and CI dependencies to current versions and fixes the code where newer APIs require it. The first step is Python 3.14 and 3.15 support, which needs a newer pyo3.

Changes

Python 3.14/3.15 + pyo3

  • Upgrade pyo3 to 0.30 in the extension crate and in kete_core
  • Port the hand-written FromPyObject impls (PySimultaneousStates, PyTime) to the new extract(Borrowed<'a, 'py, PyAny>) signature, and replace downcast_exact with cast_exact
  • Add from_py_object to the cloneable #[pyclass] types, which they now need to be extracted by value. Derive Clone on PyTime
  • Raise requires-python to <3.16 and add 3.14 and 3.15 to the wheel-build and test/lint matrices

CI / release

  • Point the release workflow's devpi, uv and pip index URLs at devpi.apps.neoscluster.ipac.caltech.edu, replacing pypi.neosdev.ipac.caltech.edu

Dependency updates

  • Rust:
    • polars 0.45 -> 0.55
    • nalgebra 0.33 -> 0.35
    • itertools 0.14 -> 0.15
    • argmin 0.10 -> 0.11
      • argmin-math 0.4 -> 0.5
    • directories 5 -> 6
    • kdtree 0.7 -> 0.8
    • pprof 0.14 -> 0.15
    • minor bumps (chrono, crossbeam, lazy_static, pathfinding, rayon, serde, sgp4)
  • Port io/parquet.rs to the polars 0.55 API:
    • DataFrame::new takes an explicit height
    • as_single_chunk_par -> rechunk_mut_par
    • string columns use no_null_iter
    • columns are now looked up by name one at a time
  • criterion stays at 0.5:
    • pprof 0.15 (latest) still implements Profiler only for criterion 0.5
  • Python: the suite passes on numpy 2.5 / astropy 8 / pandas 3 with no code changes

Notes for reviewers

  • bincode stays pinned at 2.0.0-rc.3 on purpose. Saved files depend on its format, so any bump needs a separate forward-compatibility check.
  • criterion must stay at the version pprof implements Profiler for. Bump the two together.

- Upgrade pyo3 to 0.30 in the extension crate and 0.29 in `kete_core`
- Port `FromPyObject` impls for `PySimultaneousStates` and `PyTime` to the new `extract`/`Borrowed` API, and use `cast_exact` in place of `downcast_exact`
- Add `from_py_object` to the cloneable `#[pyclass]` types and derive `Clone` on `PyTime`, as the new pyo3 requires
- Allow Python 3.14 via `requires-python`, and add it to the wheel build and test/lint CI matrices
- Point the release workflow's devpi and uv/pip index URLs at the new `devpi.apps.neoscluster.ipac.caltech.edu` host
- Reformat the Cargo manifests (inline tables, trailing newlines)

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
- Update the optional `pyo3` dependency in `kete_core` from `^0.29.0` to `^0.30.0`

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
- Upgrade core crates in the workspace and `kete_core`: nalgebra 0.35, itertools 0.15, argmin 0.11, argmin-math 0.5, kdtree 0.8, directories 6, polars 0.55, pprof 0.15, plus patch/minor bumps for serde, rayon, chrono, crossbeam, lazy_static, pathfinding and sgp4
- Update the parquet reader and writer for polars API changes: pass the row count to `DataFrame::new`, use `rechunk_mut_par` and `no_null_iter`, and look up the state columns one at a time instead of with `columns`

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
- Add Python 3.15 to the macOS wheel build and the release wheel matrices in the release workflow
- Add Python 3.15 to the test and lint matrix on macOS and Ubuntu
- Raise the `requires-python` upper bound from `<3.15` to `<3.16` so the package can be installed on 3.15

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
- Update actions/checkout from v6 to v7 in the release-wheels and test-lint workflows
- Update actions/cache from v5 to v6 in both workflows
- Update astral-sh/setup-uv from v8.1.0 to v10.4.2 in both workflows
- Update astral-sh/ruff-action from v4.0.0 to v4.1.0 in the lint workflow

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
- Bump the version to 1.1.5 in the root Cargo.toml, pyproject.toml, and kete_core's Cargo.toml. These had drifted apart at 1.1.3, 1.1.4, and 1.1.0.
- Add VERSION.toml as the single source of truth for the version. It lists the files and match expressions that a version-bump tool uses to keep them in sync.

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
- Drop the `kdtree` crate from `kete_core`'s Cargo.toml, as it is no longer used
- Reduce dependency footprint and build time

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
@annie444 annie444 changed the title chore(deps): update dependencies, add Python 3.14 support chore(deps): update dependencies, add Python 3.14 and 3.15 support Dec 3, 2026
@annie444 annie444 self-assigned this Dec 3, 2026
@annie444
annie444 requested a review from joemasiero December 3, 2026 20:36
@annie444 annie444 added the dependencies Pull requests that update a dependency file label Dec 3, 2026
- Add a notice that development of the `kete` Python package has moved to dahlend/kete
- Change the pip install instructions to install from the GitHub repository instead of PyPI
- Turn the documentation, examples and tutorials links into a proper Markdown list

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>

@joemasiero joemasiero left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's just change the phrasing on this line. otherwise lgtm

Comment thread README.md Resolved
- Update the README to say that v2+ API development has moved to dahlend/kete
- Note that this repository is still actively maintained to refine the v1 API

Signed-off-by: Analetta "Annie" Ehler <annie.ehler.4@gmail.com>
@annie444
annie444 requested a review from joemasiero December 3, 2026 22:32

@joemasiero joemasiero left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. good to go

@annie444
annie444 merged commit 8c363cc into main Dec 3, 2026
15 of 16 checks passed
@annie444
annie444 deleted the update-deps branch December 3, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants