Skip to content

Make --skip-existing less brittle #332

@mayeut

Description

@mayeut

twine checks for message starting with File already exists:

# NOTE(sigmavirus24): Old PyPI returns the first message while Warehouse
# returns the latter. This papers over the differences.
msg = ('A file named "{0}" already exists for'.format(filename),
'File already exists')

Message has been changed to one starting with The filename or contents already exist in pypi/warehouse#3310:
https://github.com/pypa/warehouse/blob/969695d030aef8b11d5b052e8731a80746c404c8/warehouse/forklift/legacy.py#L1083-L1094

c.f. failing deployment: https://travis-ci.org/mayeut/gcovr/builds/360424325

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions