Skip to content

Update scikit-learn and Pydantic security pins - #5796

Draft
realTaki wants to merge 1 commit into
FederatedAI:masterfrom
realTaki:upstream/python-sklearn-pydantic-security-pins
Draft

realTaki wants to merge 1 commit into
FederatedAI:masterfrom
realTaki:upstream/python-sklearn-pydantic-security-pins

Conversation

@realTaki

Copy link
Copy Markdown

Changes

  • Update scikit-learn from 1.4.1.post1 to 1.5.2, which includes the security fix shipped in 1.5.0.
  • Update Pydantic from 1.10.12 to 1.10.27, retaining the V1 API and picking up the V1 security fixes.

Only python/setup.py and python/requirements-fate.txt change. The existing PyTorch, Transformers, protobuf, and gRPC pins are unchanged, so this PR does not depend on #5794.

Verification

  • Built a wheel and sdist from upstream master at 5a06d9e4 with this patch. Installed the wheel on Linux ARM64 with CPython 3.10 and 3.11, confirmed the new versions, and ran dependency consistency checks against the otherwise unchanged dependency set.
  • On each Python version, 19 targeted tests and 4 subtests passed, covering evaluation metrics, Pydantic parameter/schema handling, and scikit-learn histogram and dataframe operations. The same three evaluation tests failed with the same errors on unchanged upstream master: test_MultiPrecision, test_MultiRecall, and test_psi. No distributed services were exercised.

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.

2 participants