You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
}
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: