Skip to content

Support Python 3.15 in the base Analyzer - #2527

Draft
michaelgiraldo wants to merge 5 commits into
data-privacy-stack:mainfrom
michaelgiraldo:codex/python-3-15-analyzer
Draft

michaelgiraldo wants to merge 5 commits into
data-privacy-stack:mainfrom
michaelgiraldo:codex/python-3-15-analyzer

Conversation

@michaelgiraldo

@michaelgiraldo michaelgiraldo commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Waiting on #2540

Change Description

Allow Python 3.15 for the base presidio-analyzer installation with spaCy. Set Python 3.15-specific floors of NumPy 2.5.2 and spaCy 3.8.17, and regenerate the Analyzer lockfile with CI's uv 0.11.6. The NumPy upper bound follows the proposal in #2330 for the Python 3.15 branch.

Add a dedicated Ubuntu job that exercises the locked base installation with both English spaCy models and three existing test modules. It also builds the Analyzer wheel and verifies a clean, wheel-only pip installation, pip check, and an isolated import. The installation guide documents the Python 3.15 scope.

The behavior change is install eligibility and dependency selection for the Analyzer on Python 3.15. Optional backends and the other Presidio packages are tracked in #2526.

NumPy license review

The Python 3.15 lock resolves NumPy 2.5.5 for its CPython 3.15 wheels. Dependency Review flagged its SPDX expression, BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0. NumPy 2.4.6 on main declares the same expression. Dependency Review result

The separate commit 4546cc1 adds pkg:pypi/numpy to the package-specific license exceptions, following #2409. The exception applies to NumPy across versions. Vulnerability review still checks NumPy. This PR presents the dependency update and the license exception together for review.

Issue reference

Part of #2526.

Local validation

  • Linux x86-64, CPython 3.15.2: ran the new CI job's commands in a clean container. All 89 focused tests passed, and the built wheel passed the clean installation, dependency, and import checks.
  • macOS ARM64, CPython 3.15.2: locked Ruff and the same 89 focused tests passed.
  • Linux x86-64, CPython 3.15.2: tested the NumPy 2.5.2 and spaCy 3.8.17 floors with an installed-wheel smoke test and 19 focused tests.
  • macOS ARM64, Python 3.11–3.14: locked wheel-install smoke checks and 19 focused tests passed on each version using the same manifest and lockfile.
  • Actionlint and the lockfile drift check passed.

Hosted CI

The initial hosted run rejected the new job's checkout pin because it had an extra character. Commit 4805114 restores the exact pin from main. Initial run · Corrected run

@github-actions github-actions Bot added documentation analyzer dependencies Pull requests that update a dependency file ci external labels Nov 21, 2026
The Python 3.15 Analyzer lock requires NumPy 2.5.5. Its SPDX expression matches NumPy 2.4.6 on main. Follow data-privacy-stack#2409 by using the existing package-specific license exception for this dependency.
@michaelgiraldo michaelgiraldo mentioned this pull request Nov 22, 2026
12 tasks

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

analyzer ci dependencies Pull requests that update a dependency file documentation external

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant