-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: restore -e for develop exports #3118
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of issues here,
- I am not sure if
-e
works well for PEP 517 directory dependencies - I do not think the checks are correct for this, only directory dependencies and vcs dependencies support editable installs.
Shouldn't the user then have removed
Will make the change. |
I guess this was existing behaviour. The the difference is poetry can handle PEP 517 packages, so a user might have |
tests/utils/test_exporter.py
Outdated
@@ -497,7 +497,7 @@ def test_exporter_can_export_requirements_txt_with_git_packages(tmp_dir, poetry) | |||
content = f.read() | |||
|
|||
expected = """\ | |||
foo @ git+https://github.com/foo/foo.git@123456 | |||
-e foo @ git+https://github.com/foo/foo.git@123456 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, these are not marked as develop
in the lock data above. This should not, be -e
prefixed. I think there is a bug some place else. I wonder if python-poetry/poetry-core#98 is related?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I felt like I saw a PR for this. I can wait for that to land and then rebase my change here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great if you can test with that branch locally atleast to confirm this is the case. Else we will have to dig into it seperately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified that against that branch the tests don't need updating.
Converting to Draft until python-poetry/poetry-core#98 is landed. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
The
line
variable containing-e
was consistently overwritten.