Skip to content

Commit

Permalink
Avoid timeouts while publishing a package on Pypi
Browse files Browse the repository at this point in the history
Publishing packages on PyPI using GitHub actions
can take longer than expected. Poetry has a timeout
of 15 seconds to check for new activity on the network
but on GitHub actions sometimes that's not enough.
This error was reported on
python-poetry/poetry#6009
and it's fixed using the env variable POETRY_REQUESTS_TIMEOUT.
We set this variable to 120 seconds that should be
more that enough for PyPI to finish the work.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
  • Loading branch information
sduenas committed Nov 28, 2023
1 parent 4f4e2f2 commit f3ef71e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ runs:
shell: bash

- name: Publish release to pypi
env:
POETRY_REQUESTS_TIMEOUT: 120
run: |
poetry publish
shell: bash

0 comments on commit f3ef71e

Please sign in to comment.