-
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
Export requirements.txt #100
Comments
I also need something like this to deploy on Heroku. |
I added this to my tooling as a workaround: # Makefile
requirements.txt: pyproject.lock
poetry run pip freeze > $@
|
It doesn't work for me:
|
@Tonkonozhenko Have |
If the sole purpose is deploying to Heroku, exporting |
I am also using poetry together with tools for Lambda functions (chalice in this case) that require a requirements file. Native support in either poetry or chalice would be nice, but I currently work around this by generating the requirements file in a specific Make target:
While not extensively tested, this works by explicitly pinning all transitive requirements in the requirements file. |
@cauebs That would work but as per the project readme is probably better to go with exporting requirements.txt rather than the proprietary pipfile. It would be ideal if the requirements.txt could be automatically kept in sync with the pyproject.toml file as that would make things less likely to be messed up. |
I'm deploying with Docker and having a requirements.txt is much simpler for this. Currently I'm using Here's my code: https://gist.github.com/etienned/686d6743d66415eb39a715bb369fe2f6 |
For information, this is added here: #675. |
@etienned thanks for the notification. |
FYI, |
Is this going to be backported to the python 2 version of poetry? |
|
This issue 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 @sdispater
I want to use poetry for managing my dependencies for AWS Lambda functions with serverless.
For this, it would be awesome to have export to requirements.txt to use it in serverless plugin.
WDYT about this?
The text was updated successfully, but these errors were encountered: