XRAY-146488 - Onboarding pip env#802
Open
gauriy-tech wants to merge 2 commits into
Open
Conversation
f3cb756 to
981b4a3
Compare
87cdb54 to
2a87723
Compare
152d1a5 to
5df91d4
Compare
…Pipenv curation helpers Co-authored-by: Cursor <cursoragent@cursor.com>
5df91d4 to
5877455
Compare
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.
devbranch.go vet ./....go fmt ./....Onboards pipenv as a supported package manager for jf curation-audit, following the same repo-detection and curation pass-through pattern already used for Poetry. Curation is resolved via a 3-tier priority: jf pipenv-config → ~/.pip/pip.conf index-url → Pipfile [[source]] — covering both JFrog-native setup and the common case where a customer already configured Artifactory as their PyPI index via pip.conf.
Changes
Add techutils.Pipenv to curation-audit's supported technologies, with a minimum-version gate (pipenv >= 2023.7.4) required for reliable --pypi-mirror support.
Add setRepoFromPipfile (3-tier repo detection) and wire it into SetRepo/auditTree.
Add installPipenvDeps, runPipenvInstallFromRemoteRegistry, and buildPipenvDownloadUrlsMap to resolve dependency download URLs and run pipenv install through the curation pass-through endpoint, rewriting the Pipfile's [[source]] URL when present.
Reuse existing CVS/403-blocked detection and fallback handling (same as Pip/Poetry).
Update CLI help text to list pipenv/poetry/pnpm as supported package managers.
Add unit tests for version parsing, repo detection (pip.conf/Pipfile), Pipfile.lock parsing, and CVS/403 detection.