Repository navigation
Include PyPI source distribution URLs in package metadata - #224
Open
tejasng053 wants to merge 1 commit into
Open
tejasng053 wants to merge 1 commit into
tejasng053 wants to merge 1 commit into
Conversation
Fixes aboutcode-org#134 Signed-off-by: tejasng053 <tejasng053@gmail.com>
This branch has not been deployed
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.
What's changed?
package.info()currently leavesrepository_download_urlunset for PyPI packages, even when the release includes a source distribution. For a release containing a wheel followed by an sdist, callers receive the wheel'sdownload_urlbut no link to its source archive.Select the release file whose
packagetypeissdistand expose its URL asrepository_download_url. Preserve the existing first-filedownload_urlbehavior and leave the source URL unset when no sdist is available. Selection stays specific to each release, including requests for a single version.Add ten mocked regression cases covering file ordering, source-only and wheel-only releases, missing metadata, empty releases, per-release URLs, and version filtering. Update the existing Flask fixture and changelog.
Related issue
Fixes #134
Validation
test_cocoapods_packagesfailed with an SSL connection error fetching a podspec fromraw.githubusercontent.com; the run was interrupted when the following live-network CocoaPods test stalled. Those two tests are unchanged by this PR. Related existing issue: Some unit tests depends on external services #188.make checkpassed (pycodestyle, isort, Black).git diff --checkpassed.Checklist
The final checkbox remains open because of the live-network test limitation above and pending CI. This change was prepared with Codex assistance.