twine upload & network robustness

Because of covid-19 I am working a lot from home so my network is likely less robust.
I was wondering about what happens if I upload with twine to pypi and halfway through my network fails.
Is the uploaded filename remembered so I cannot retry when my network comes back?
Or is the upload somehow atomic so that it has to complete(be checked) before the file is entered into pypi?

The latter.
On Fri, Aug 7, 2020 at 4:37 AM Robin Becker robin@reportlab.com wrote:
Because of covid-19 I am working a lot from home so my network is likely less robust.
I was wondering about what happens if I upload with twine to pypi and halfway through my network fails.
Is the uploaded filename remembered so I cannot retry when my network comes back?
Or is the upload somehow atomic so that it has to complete(be checked) before the file is entered into pypi? -- Robin Becker -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/SWHFP...

warehouse.forklift.legacy._is_valid_dist_file() https://github.com/pypa/warehouse/blob/master/warehouse/forklift/legacy.py#L...
https://github.com/pypa/warehouse/blob/master/docs/api-reference/legacy.rst#... :
The API endpoint served at upload.pypi.org/legacy/ is Warehouse’s
emulation of the legacy PyPI upload API. This is the endpoint that tools such as twine use to upload distributions to PyPI.
https://warehouse.pypa.io/api-reference/legacy/#upload-api
^^ this page is not in the top-level warehouse TOC
https://warehouse.pypa.io/application/#file-and-directory-structure
On Fri, Aug 7, 2020, 12:34 PM Dustin Ingram di@python.org wrote:
The latter.
On Fri, Aug 7, 2020 at 4:37 AM Robin Becker robin@reportlab.com wrote:
Because of covid-19 I am working a lot from home so my network is likely less robust.
I was wondering about what happens if I upload with twine to pypi and halfway through my network fails.
Is the uploaded filename remembered so I cannot retry when my network comes back?
Or is the upload somehow atomic so that it has to complete(be checked) before the file is entered into pypi? -- Robin Becker -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/SWHFP...
-- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-leave@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/T2ZIW...

On 07/08/2020 19:58, Wes Turner wrote:
warehouse.forklift.legacy._is_valid_dist_file() https://github.com/pypa/warehouse/blob/master/warehouse/forklift/legacy.py#L...
https://github.com/pypa/warehouse/blob/master/docs/api-reference/legacy.rst#... :
The API endpoint served at upload.pypi.org/legacy/ is Warehouse’s
emulation of the legacy PyPI upload API. This is the endpoint that tools such as twine use to upload distributions to PyPI.
https://warehouse.pypa.io/api-reference/legacy/#upload-api
^^ this page is not in the top-level warehouse TOC
https://warehouse.pypa.io/application/#file-and-directory-structure
thanks
participants (3)
-
Dustin Ingram
-
Robin Becker
-
Wes Turner