-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip install with relative paths in pyproject.toml doesn't seem to work #9127
Comments
You need to build a wheel to deploy. If you're deploying with sources, then you'll need the build tool (poetry) at deploy time. How poetry turns a relative path in the |
@pfmoore Isn't the following a bit inconsistent?
|
@pfmoore Note that even when I build the package it fails:
File "/home/ubuntu/Code/tinkering/pip_toml_try/main_app/my_venv/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3103, in __init__
raise RequirementParseError(str(e))
pip._vendor.pkg_resources.RequirementParseError: Invalid URL: ../lib_foo Does that mean that currently I need to use |
You should not be able to build the package, since it is not allowed to have dependencies specified as relative paths in package metadata. PEP 508 only allows version specifiers and URL (which only allows absolute paths even if you use |
@uranusjr Thanks you for the reference, I will rephrase my issue. |
The section
is poetry-specific, but I presume that it ultimately gets translated into To be standards-compliant, Poetry shouldn't allow this as well, but this is something you'd need to take up with the Poetry project - they control the |
How do I specify relative paths that
pip
can use inpyproject.toml
?poetry
successfully installs them, however pip fails with the following error:Example
I have the following repository structure
main_app
is dependent uponlib_foo
, its dependecies looks like this:./main_app/pyproject.toml
when doing:
I am using
poetry
when developing a project however when deploying them I want to only usepip
The text was updated successfully, but these errors were encountered: