Skip to content

Python: Refresh dependencies and restore Python 3.15 resolution - #8505

Merged
Eduard van Valkenburg (eavanvalkenburg) merged 5 commits into
microsoft:mainfrom
eavanvalkenburg:pin_hl
Sep 18, 2026
Merged

Eduard van Valkenburg (eavanvalkenburg) merged 5 commits into
microsoft:mainfrom
eavanvalkenburg:pin_hl

Conversation

@eavanvalkenburg

@eavanvalkenburg Eduard van Valkenburg (eavanvalkenburg) commented Sep 18, 2026

Copy link
Copy Markdown
Member

Motivation & Context

The Python workspace could not resolve its full supported-version matrix because native dependencies used by the Hyperlight and PostgreSQL connectors publish wheels through Python 3.14 but not Python 3.15. At the same time, seven overlapping Python dependency-update PRs had accumulated, and the shared development environment installed the heavy pandas package solely for self-contained samples.

This change restores Python 3.15 workspace resolution without narrowing the entire workspace, consolidates the pending dependency maintenance, and keeps sample-only dependencies local to the scripts that use them.

Description & Review Guide

Related Issue

Fixes #8504

Consolidates the dependency updates from #8466, #8467, #8468, #8499, #8500, #8501, and #8502.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass, and I have added new tests where possible
  • The PR follows the Contribution Guidelines
  • This PR is linked to an issue and there is no other open PR for this issue (see Related Issue above).
  • This is not a breaking change. If it is a breaking change, add the breaking change label (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 18, 2026 09:33
@agent-framework-automation agent-framework-automation Bot added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python labels Sep 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The lockfile’s global Python cap still prevents Python 3.15 workspace commands.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Restricts Hyperlight to Python 3.10–3.14 and excludes it from core[all] on newer interpreters.

Changes:

  • Adds Hyperlight Python-version constraints.
  • Documents supported versions.
  • Regenerates the workspace lockfile.
File summaries
File Description
python/packages/hyperlight/pyproject.toml Caps package support below Python 3.15.
python/packages/core/pyproject.toml Excludes Hyperlight from all on Python 3.15+.
python/packages/hyperlight/README.md Documents the supported range.
python/uv.lock Refreshes resolution with the new constraints.
Review details
  • Files reviewed: 3/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

MAF Automated Review — Iteration 1

Result: Findings reported
Scope: full PR (1 commit(s)): 6dd6aeeb48eb
Model: gpt-5.6-sol-fast

Overview

The PR correctly caps the published Hyperlight package and guards its inclusion in core[all]; the existing platform marker, lazy-loading error, and Python 3.10-3.14 CI matrix provide useful guardrails. However, retaining the capped package in the root uv workspace turns that package cap into a workspace-wide Python ceiling, blocking unrelated Python 3.15 workspace operations before those guards execute. One Medium finding remains.

Reviewed the supplied pull-request change set across correctness, security/reliability, architecture, and failure behavior.
1 verified finding remained after source verification (1 medium) across 1 file. Details are attached to the affected lines below.

Affected areas: python/packages/hyperlight/pyproject.toml

Comment thread python/packages/hyperlight/pyproject.toml Outdated
Consolidate the open Python dependency updates, remove pandas from the shared development environment, and update checker compatibility.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@agent-framework-automation agent-framework-automation Bot added the lab Usage: [Issues, PRs], Target: lab packages label Sep 18, 2026
Allow sample type checkers to validate the PEP 723 script without requiring pandas in the shared development environment.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the Hyperlight connector compatible with the workspace Python range while installing the native Wasm backend only where wheels are published.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@eavanvalkenburg Eduard van Valkenburg (eavanvalkenburg) changed the title Python: Refresh dev dependencies and cap Hyperlight at 3.14 Python: Refresh dev dependencies and gate Hyperlight backend Sep 18, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

MAF Automated Review — Iteration 2

Result: No findings
Scope: 2 net-new commit(s): b06da62fe6e2, 279f55e367d7
Model: gpt-5.6-sol-fast

Overview

This incremental update refreshes development tooling and lockfiles, keeps pandas local to its PEP 723 sample, and adjusts annotations and test fixtures for newer type checkers without changing production behavior. The sample retains explicit pandas metadata, Lab remains independently locked, and focused converter, event-balancing, checker, and lock validation constrain the affected paths. No new publishable defect was established in this review range.

Reviewed the supplied incremental change set across correctness, security/reliability, architecture, and failure behavior.
No publishable findings remained after source verification for this scope.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@eavanvalkenburg Eduard van Valkenburg (eavanvalkenburg) changed the title Python: Refresh dev dependencies and gate Hyperlight backend Python: Refresh dependencies and restore Python 3.15 resolution Sep 18, 2026
Merged via the queue into microsoft:main with commit b043790 Sep 18, 2026
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs lab Usage: [Issues, PRs], Target: lab packages python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python: Restrict Hyperlight Wasm backend to Python 3.14 and earlier

3 participants