poetry publish --build fails with "400 Client Error: This filename has already been used"
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: macOS 10.13.6
- Poetry version: 0.12.8
- pyproject.toml file: https://github.com/cjw296/carly/blob/214620ffb3e715b28e7511948decf2afa8ee5756/pyproject.toml
Issue
The failure looks like this:
(carly-py2.7) (master) tweedledee:carly chris$ poetry publish --build
Building carly (0.2.0)
- Building sdist
- Built carly-0.2.0.tar.gz
- Building wheel
- Built carly-0.2.0-py2.py3-none-any.whl
Publishing carly (0.2.0) to PyPI
- Uploading carly-0.2.0-py2.py3-none-any.whl 100%
[HTTPError]
400 Client Error: This filename has already been used, use a different version. See https://pypi.org/help/#file-name-reuse for url: https://upload.pypi.org/legacy/
publish [-r|--repository REPOSITORY] [-u|--username USERNAME] [-p|--password PASSWORD] [--build]
If you look at pypi, you’ll see the wheel made it up, but not the sdist:
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
poetry publish --build fails with "400 Client Error: This filename ...
I am on the latest Poetry version. I have searched the issues of this repo and believe that this is not a duplicate....
Read more >How can I re-upload package to pypi? - python - Stack Overflow
error: HTTP Error 400: This filename has previously been used, you should use a different version. It seems pypi can track the upload...
Read more >How to Publish an Open-Source Python Package to PyPI
In this step-by-step tutorial, you'll learn how to create a Python package for your project and how to publish it to PyPI, the...
Read more >400 Client Error when trying to install prodigy using poetry
The error occurs due to poetry passing my HTTP Basic auth credentials to the AWS S3 pre-signed URL. AWS throws the error saying...
Read more >Making Python Packages Part 2: How to Publish & Test Your ...
The first step to do this is to make a new account on test.pypi.org (yes, you need a separate account from your pypi...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will investigate and check if there is a case where this can happen. I will keep you posted.
Nope, I haven’t been able to reproduce this since, so closing for now.