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
Copy Markdown
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 9 times, most recently 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
@nnobelis nnobelis force-pushed the nnobelis/fix_fetching_packages_from_private_repositories branch 3 times, most recently from 76bf1e9 to c470994 Compare April 24, 2026 15:51
@nnobelis nnobelis force-pushed the nnobelis/fix_fetching_packages_from_private_repositories branch 2 times, most recently from 4e78be2 to d77b915 Compare May 7, 2026 09:25
nnobelis added 4 commits May 7, 2026 11:35
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 <nicolas.nobelis@bosch.com>
URLs to private repositories usually contain credentials.

Signed-off-by: Nicolas Nobelis <nicolas.nobelis@bosch.com>
Some artifactories (e.g. JFrog), return relative URLs in the package
metadata. This commit canonicalizes them to compare them.

Signed-off-by: Nicolas Nobelis <nicolas.nobelis@bosch.com>
…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 <nicolas.nobelis@bosch.com>
@nnobelis nnobelis force-pushed the nnobelis/fix_fetching_packages_from_private_repositories branch from d77b915 to 2480998 Compare May 7, 2026 09:36
Signed-off-by: Nicolas Nobelis <nicolas.nobelis@bosch.com>
@nnobelis nnobelis force-pushed the nnobelis/fix_fetching_packages_from_private_repositories branch from d192bfc to 863b166 Compare May 7, 2026 10:34
@TG1999 TG1999 self-requested a review May 7, 2026 13:37
Copy link
Copy Markdown
Contributor

@TG1999 TG1999 left a comment

Choose a reason for hiding this comment

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

LGTM!

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

2 participants