Python: chore(python): improve dependency range automation#4343
Open
eavanvalkenburg wants to merge 8 commits intomicrosoft:mainfrom
Open
Python: chore(python): improve dependency range automation#4343eavanvalkenburg wants to merge 8 commits intomicrosoft:mainfrom
eavanvalkenburg wants to merge 8 commits intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves Python dependency management automation by introducing a comprehensive dependency range validation system, tightening dependency bounds across packages, and enhancing test organization.
Changes:
- Adds automated dependency range validation script and GitHub Actions workflow to continuously validate and update dependency upper bounds
- Tightens dependency version constraints across all packages to follow documented standards for stable (>=1.0.0), prerelease, and pre-1.0 dependencies
- Improves test organization by adding
@pytest.mark.integrationmarkers and moving Azure-specific embedding tests to a dedicated file - Updates coding standards documentation with clearer dependency versioning guidelines and corrects code examples
Reviewed changes
Copilot reviewed 33 out of 35 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
python/scripts/validate_dependency_ranges.py |
New script that validates dependency ranges by testing candidate versions and updating pyproject.toml files |
.github/workflows/python-dependency-range-validation.yml |
New workflow that runs validation, creates issues for failures, and opens PRs with updated bounds |
python/pyproject.toml |
Adds validate-dependency-ranges poe task |
python/packages/*/pyproject.toml |
Tightens dependency bounds and adds integration test markers to test commands |
python/packages/core/tests/openai/test_openai_embedding_client.py |
Removes Azure tests (moved to dedicated file) and adds integration markers |
python/packages/core/tests/azure/test_azure_embedding_client.py |
New file with Azure OpenAI embedding tests and proper test isolation |
python/packages/azure-ai-search/tests/test_aisearch_context_provider.py |
Adds fixture to clear ambient Azure Search environment variables for test isolation |
python/CODING_STANDARD.md |
Clarifies external dependency versioning guidelines and fixes code example |
python/packages/core/agent_framework/_types.py |
Reorders docstring sections (Returns before Raises) following Python conventions |
python/packages/core/agent_framework/_workflows/_workflow.py |
Style improvement: combines variable assignment and yield statements |
python/packages/devui/agent_framework_devui/_deployment.py |
Style improvement: combines variable assignment and yield statements |
python/packages/azurefunctions/agent_framework_azurefunctions/_app.py |
Reorders docstring sections (Returns before Raises) |
.gitignore |
Adds dependency-range-results.json to ignored files |
- tighten dependency bounds and coding standards guidance\n- add dependency range validation workflow, reporting, and issue automation\n- update related tests and dependency pins for compatibility Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
b6cc6b7 to
707bcf4
Compare
Member
Python Test Coverage Report •
Python Unit Test Overview
|
||||||||||||||||||||||||||||||||||||||||
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
TaoChenOSU
reviewed
Mar 2, 2026
Contributor
There was a problem hiding this comment.
These two scripts have very little comments. Perhaps a README to document how they work.
dmytrostruk
approved these changes
Mar 2, 2026
| @@ -0,0 +1,208 @@ | |||
| name: Python - Dependency Range Validation | |||
Member
There was a problem hiding this comment.
Please add short comment to describe the purpose of this workflow.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #902