-
Notifications
You must be signed in to change notification settings - Fork 2.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
Add --no-freeze option to poetry export #2013
Conversation
4ccec6d
to
8ce13bc
Compare
* add '--no-freeze' option to export * add tests for 'export --no-freeze'
so rather than just using a completely unpinned name, i think this should include the pyproject.toml dependency specification if its a direct dep, albeit translated to some minimal pip compatible semantic (https://www.python.org/dev/peps/pep-0440/#version-specifiers) |
Yes I mean what I give as restriction in pyproject.toml |
@@ -96,6 +99,9 @@ def _export_requirements_txt( | |||
line = "{}".format(package.source_url) | |||
if package.develop and package.source_type == "directory": | |||
line = "-e " + line | |||
elif no_freeze: | |||
dependency = package.to_dependency() | |||
line = package.name |
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.
afaics, this strips the dependency to just being the naked package name, sans the pyproject.toml specification.
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.
+1, it would be great to move soft deps like 1.0.*
as is too.
Export was moved to |
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. |
Hi. This is my fist little submission.
This PR provides a solution for #2009. This allows to generate a
requirements.txt
without frozen version in it, so that user can keeprequirements.txt
when building a setuptools package using for example PBR.