poetry icon indicating copy to clipboard operation
poetry copied to clipboard

export requirements.txt file without downloading packages

Open padrepitufo opened this issue 2 years ago • 2 comments

  • [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.

padrepitufo avatar Feb 16 '23 21:02 padrepitufo

Exporting does not download packages. You've misunderstood something.

dimbleby avatar Feb 16 '23 22:02 dimbleby

Dependencies are downloaded for locking. You probably forgot to commit your lockfile, so poetry has to lock first before exporting.

radoering avatar Feb 17 '23 05:02 radoering

Closing, as the issue at hand was explained. Feel free to open new issue if you encounter any other problems

Secrus avatar Apr 18 '23 09:04 Secrus

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.

github-actions[bot] avatar Feb 29 '24 15:02 github-actions[bot]