-
Notifications
You must be signed in to change notification settings - Fork 55
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
Poetry export does not export local editable requirements correctly #145
Comments
I ran into this as well. Thanks for posting the bug. |
I need this as well! Please let us know what's up with this issue. |
Yep, I was just about to create an issue for this. Thanks for posting. |
same here sticking with 1.0.0 version |
I just stumbled upon this as well (Poetry 1.1.4, Python 3.9.1). In my case, I made the generated Would it make sense to have this behavior for path dependencies?
|
is poetry still being actively developed? Lack of support for relative paths is a huge barrier to adoption. |
Thanks for the idea @bow ! Would you have an example of how exactly you did it, ie. what you wrote in your |
@fkaleo It was actually done outside of Poetry ~ simply using I should say first, I just tested this below again in Poetry 1.1.7 and I could see that it already creates direct references for the local dependency. So it seems like the trick below is not necessary anymore. My use case was also to generate wheels from That being said, with something like this in my
it was simply this
|
Took a similar approach to @bow (as a makefile command, works on Mac): freeze:
poetry export -f requirements.txt --output requirements.txt
sed -i '' '/my-package/d' requirements.txt
echo "-e sub-dir/" >> requirements.txt |
+1 running into this as well |
-vvv
option).https://gist.github.com/pawelrubin/19731324b4ed3b1f3d50c6634befc016
https://gist.github.com/pawelrubin/563bba1d591959c674c8aca81d3918ad
Issue
Local editable packages are not exported correctly by poetry. Thus,
pip install -r requirements.txt
fails with error:Expected result
Current result
extras
develop = true
(editable mode)The text was updated successfully, but these errors were encountered: