-
Notifications
You must be signed in to change notification settings - Fork 52
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
export saves absolute path to dependecy #185
Comments
See python-poetry/poetry#5273; relative paths are not allowed in Python dependency specifications. |
while that's true, requirements.txt is more relaxed / less well defined. eg among the examples given at https://pip.pypa.io/en/stable/reference/requirements-file-format/#example we find
Not that I've any intention of doing anything with this one myself, but I don't think it's a completely wrong ask. (It likely is one of those things where: if the raiser wants it, then they need to contribute it themselves!) |
-vvv
option) and have included the output below.Issue
As you can see in my pyproject.toml, I have a dependency that is referenced by a file path:
neoapi = {file = "libs/neoapi-1.2.0-cp39-cp39-win_amd64.whl"}
.When runnning
poetry export --no-hashes -f requirements.txt -o requirements.txt
the corresponding line yields:
neoapi @ file:///C:/blank/neoapi-1.2.0-cp39-cp39-win_amd64.whl ; python_version >= "3.9" and python_full_version < "3.10.0" and python_full_version != "3.9.7"
.I think absolute paths make no sense here. If this is intended, please add an option to instead use relative paths.
The text was updated successfully, but these errors were encountered: