Repository navigation
Conversation
Signed-off-by: Pinsara Sarathchandra <113714@foe.sjp.ac.lk>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | ✅ 0 (≤ 20 complexity) |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Signed-off-by: Pinsara Sarathchandra <113714@foe.sjp.ac.lk>
|
@pinsara23 thanks for working on this topic. Could move those newly added test beds into a new pull request, that introduces them and builds test snapshots with the current behavior? This would make a review much easier and would show the effect of the changes clearer. |
|
Thanks for the suggestion! I've opened #1163 with the testbed and current-behavior snapshots. Once that's merged, I'll rebase this PR so the snapshot diffs show the change. |
|
putting this on DRAFT mode - lets discuss the expected solution first: |
|
@jkowalleck I agree with the proposed solution: keep the PURL for local VCS dependencies but don't add the I've prototyped this: factor the scheme check out of
@ZerirlKeou happy to collaborate. The testbed in #1163 (current-behavior snapshots) covers |
Local VCS dependencies in
Pipfile.lock(e.g."git": "git+file:///…") got apkg:pypi/PURL, unlike localfile/pathdependencies, which correctly get none.PipenvBB.__is_local()returnedFalsebefore checking VCS keys. It now falls through to the VCS URL (via__package_vcs()) when there's nofile/pathkey, so the existingfile/+filescheme check applies. Remote VCS dependencies (e.g.git+https://…) keep their PURL.Adds a
pipenv/local-vcstest fixture covering both cases: a localgit+filedependency (no PURL) and a remotegit+httpsdependency (PURL kept). No existing snapshots changed.Closes #1152