Skip to content
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

dependencies installed from VCS leads to a failure #19

Open
tyong920 opened this issue Jul 12, 2024 · 0 comments
Open

dependencies installed from VCS leads to a failure #19

tyong920 opened this issue Jul 12, 2024 · 0 comments

Comments

@tyong920
Copy link
Contributor

Describe the bug
The build failed for a project which contains dependencies installed from VCS.
To Reproduce
Steps to reproduce the behavior:

  1. Go to 'tests/data/lock'
  2. Run pdm sync
  3. Add "pdm-build-locked" into requires = ["pdm-backend", "pdm-build-locked"]
  4. Run pdm build succeed
  5. Add a VCS style dependence failed, e.g., pdm add git+https://github.com/psf/[email protected]
  6. See error pdm.backend._vendor.pyproject_metadata.ConfigurationError: Field "project.optional-dependencies.locked" contains an invalid PEP 508 requirement string "black==24.4.2 @ git+https://github.com/psf/black.git@3702ba224ecffbcec30af640c149f231d90aebdb" ("Expected end or semicolon (after version specifier) black==24.4.2 @ git+https://github.com/psf/black.git@3702ba224ecffbcec30af640c149f231d90aebdb ~~~~~~~~~^")

Desired behavior
pdm-build-locked shall work well with VCS dependencies.

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

No branches or pull requests

1 participant