Skip to content

Fix fetching packages from private repositories#261

Open
nnobelis wants to merge 5 commits intoaboutcode-org:mainfrom
boschglobal:nnobelis/fix_fetching_packages_from_private_repositories
Open

Fix fetching packages from private repositories#261
nnobelis wants to merge 5 commits intoaboutcode-org:mainfrom
boschglobal:nnobelis/fix_fetching_packages_from_private_repositories

Conversation

@nnobelis
Copy link
Contributor

@nnobelis nnobelis commented Mar 19, 2026

If a private repository is specified, the package metadata should be
fetched from it, not from pypi.org.

Fixes #260.

The changes in this PR have been tested with a private repository and without, i.e. fetching package metadata from pypi.org is still working with the changes.

@nnobelis nnobelis force-pushed the nnobelis/fix_fetching_packages_from_private_repositories branch 6 times, most recently from cc456ff to 5878469 Compare March 23, 2026 09:17
Signed-off-by: Nicolas Nobelis <[email protected]>
If a private repository is specified, the package metadata should be
fetched from it, not from pypi.org. Please note the limitation that
querying from multiple private repositories is currently not supported.

Fixes aboutcode-org#260.

Signed-off-by: Nicolas Nobelis <[email protected]>
URLs to private repositories usually contain credentials.

Signed-off-by: Nicolas Nobelis <[email protected]>
@nnobelis nnobelis force-pushed the nnobelis/fix_fetching_packages_from_private_repositories branch 2 times, most recently from add177b to 01ab6d6 Compare March 23, 2026 10:31
Some artifactories (e.g. JFrog), return relative URLs in the package
metadata. This commit canonicalizes them to compare them.

Signed-off-by: Nicolas Nobelis <[email protected]>
…cess

Some artifactories (e.g. JFrog), return URLs ending by an anchor, e.g.
to carry the source artifact hash. To make the comparison work, remove
those URL fragments.

Signed-off-by: Nicolas Nobelis <[email protected]>
@nnobelis nnobelis force-pushed the nnobelis/fix_fetching_packages_from_private_repositories branch from 01ab6d6 to e2fa598 Compare March 23, 2026 10:38
@nnobelis nnobelis marked this pull request as ready for review March 23, 2026 11:58
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.

When PYINSP_INDEX_URL is defined, package metadata are not fetched

1 participant