Workaround for changelog generation when last stable version is outdated#47047
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a stopgap workaround in the packaging tools to avoid using an outdated stable PyPI release (specifically azure-mgmt-sql==3.0.1) when determining version info for tooling that generates changelogs / computes next versions.
Changes:
- Add a package-specific override in
get_version_infoto fall back from a known-problematic stable version to the latest PyPI release.
ChenxiJiang333
approved these changes
May 22, 2026
ninghu
pushed a commit
to ninghu/azure-sdk-for-python
that referenced
this pull request
May 22, 2026
…ted (Azure#47047) * Workaround for changelog generation when last stable version is outdated * add log * update with review comments
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.
Workaround for #46856
Description
Adds a temporary workaround in get_version_info for packages whose last stable PyPI version is outdated and causes issues during changelog generation.
For �zure-mgmt-sql (stable 3.0.1), fall back to the latest release (preview) when computing
last_versionso changelog generation works correctly.Change
eng/tools/azure-sdk-tools/packaging_tools/package_utils.py: special-caseazure-mgmt-sql==3.0.1to use the latest release instead of the latest stable.This is intended as a stopgap until a more general solution is in place.