Skip to content

Fix bug with paths with spaces #6381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Apr 24, 2025
Merged

Fix bug with paths with spaces #6381

merged 11 commits into from
Apr 24, 2025

Conversation

matteius
Copy link
Member

Fixes #6308

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix.rst, .feature.rst, .behavior.rst, .doc.rst. .vendor.rst. or .trivial.rst (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

@matteius matteius requested review from Copilot and oz123 April 22, 2025 12:50
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where package installations using paths with spaces fail. Key changes include:

  • Adding an integration test to cover installation using both quoted paths and escaped spaces.
  • Updating dependency parsing logic to correctly handle paths with escaped spaces.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
tests/integration/test_install_paths.py Introduces tests for installing packages from directories with spaces in their names.
pipenv/utils/dependencies.py Modifies dependency resolution to support paths with escaped spaces.
Files not reviewed (1)
  • news/6381.bugfix.rst: Language not supported

Copy link
Contributor

@oz123 oz123 left a comment

Choose a reason for hiding this comment

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

the test case seems broken ...

@matteius matteius requested a review from oz123 April 23, 2025 19:47
@matteius
Copy link
Member Author

Should be fixed now -- the setup.py was requesting a non existent package.

@oz123 oz123 merged commit cf293d5 into main Apr 24, 2025
19 checks passed
@oz123 oz123 deleted the path-with-spaces branch April 24, 2025 05:46
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.

Install fails for local package with (escaped) space in local path
2 participants