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

pdm export doesn't provide the a hint to the culprit if an editable requirement in pyproject.toml is misspelled. #2417

Closed
1 task done
arturloewen opened this issue Nov 21, 2023 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@arturloewen
Copy link

As stated in the title, calling 'pdm export' doesn't provide the a hint to the culprit (file and line or dependency) if an editable requirement in pyproject.toml is misspelled. One is left to wonder, what the actual problem is.

  • I have searched the issue tracker and believe that this is not a duplicate.

Steps to reproduce

Add the following to pyproject.toml:
[tool.pdm.dev-dependencies]
dev = [
"-e file:///${PROJECT_ROOT}/<misspelled_folder>"
]
pdm export --without-hashes --output requirements.txt -vv

Actual behavior

The call above will result in the following error message and stop without producing the output file:
[RequirementError]: Editable requirement is only supported for VCS link or local directory.

Expected behavior

I would expect the error message to provide me hint to which file and line or which dependency caused the error.

Environment Information

# Paste the output of `pdm info && pdm info --env` below:
Inside an active virtualenv /usr/.venv, reusing it.
Set env var PDM_IGNORE_ACTIVE_VENV to ignore it.
PDM version:
  2.10.2
Python Interpreter:
  /usr/.venv/bin/python (3.11)
Project Root:
  /usr/work
Local Packages:
  
Inside an active virtualenv /usr/.venv, reusing it.
Set env var PDM_IGNORE_ACTIVE_VENV to ignore it.
{
  "implementation_name": "cpython",
  "implementation_version": "3.11.4",
  "os_name": "posix",
  "platform_machine": "x86_64",
  "platform_release": "5.15.133.1-microsoft-standard-WSL2",
  "platform_system": "Linux",
  "platform_version": "#1 SMP Thu Oct 5 21:02:42 UTC 2023",
  "python_full_version": "3.11.4",
  "platform_python_implementation": "CPython",
  "python_version": "3.11",
  "sys_platform": "linux"
}
@arturloewen arturloewen added the 🐛 bug Something isn't working label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant