Skip to content

build: drop oldest-supported-numpy from build requirements - #286

Merged
taughz merged 1 commit into
masterfrom
build/drop-oldest-supported-numpy
Nov 5, 2026
Merged

taughz merged 1 commit into
masterfrom
build/drop-oldest-supported-numpy

Conversation

@taughz

@taughz taughz commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

pyproject.toml lists oldest-supported-numpy as a build requirement. spatialmath is pure Python (no extension modules, no setup.py), so numpy is not needed at build time. numpy has also deprecated oldest-supported-numpy.

Build tools that only install the build backend fail on it. One example is rules_py's uv sdist builder, which fails with Unmet dependencies: oldest-supported-numpy when building spatialmath from a source archive. This PR leaves requires = ["setuptools"].

Testing

  • pyproject-build (isolated) builds the sdist and the wheel.
  • The wheel's file list and METADATA are identical to a wheel built from master.

@taughz
taughz requested a review from petercorke as a code owner November 5, 2026 15:04
The package is pure Python, so numpy is not needed to build it, and
numpy has deprecated oldest-supported-numpy. Build tools that do not
install arbitrary build requirements (for example rules_py's uv sdist
builder) fail on it.
@taughz
taughz force-pushed the build/drop-oldest-supported-numpy branch from 6930962 to 8eb0e3b Compare November 5, 2026 15:04
@taughz taughz self-assigned this Nov 5, 2026
@taughz taughz mentioned this pull request Nov 5, 2026
17 tasks done
@taughz
taughz merged commit 80fee27 into master Nov 5, 2026
16 checks passed
@taughz
taughz deleted the build/drop-oldest-supported-numpy branch November 5, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant