poetry
poetry copied to clipboard
export requirements.txt file without downloading packages
- [x ] I have searched the issues of this repo and believe that this is not a duplicate.
- [x ] I have searched the FAQ and general documentation and believe that my question is not already covered.
Feature Request
when working with google cloud functions I have to provide a requirements.txt
file. While I develop locally I use poetry for my virtual environment and would like to use the same pyproject.toml
to export a requirements.txt file in my GitHub action so that it can create this artifact. I can do this currently via :
poetry export --without-hashes --without dev --format=requirements.txt > requirements.txt
The only issue is that it uses more GitHub action minutes than I'd like because it always downloads all the dependencies (which I don't use) before generating the file.
Exporting does not download packages. You've misunderstood something.
Dependencies are downloaded for locking. You probably forgot to commit your lockfile, so poetry has to lock first before exporting.
Closing, as the issue at hand was explained. Feel free to open new issue if you encounter any other problems
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.