pypa/build

issues with publishing

Closed this issue · 2 comments

Hi There, while trying to release https://github.com/raamana/protocol , I encountered the following issue, which was discussed in #607 and #833. I tried to disable strict-namingin tool.hatch.build.targets.sdist but it didn't work. Any suggestions?

the toml file is here. thanks for your help.

$ 16:49:03 Quark-2 protocol >>  ll -tr
total 104
-rw-r--r--   1 Reddy  staff   2249 Sep 23  2018 Makefile
-rw-r--r--   1 Reddy  staff    262 Sep 23  2018 MANIFEST.in
-rw-r--r--   1 Reddy  staff     89 Sep 23  2018 HISTORY.rst
-rw-r--r--   1 Reddy  staff    164 Sep 23  2018 AUTHORS.rst
-rw-r--r--   1 Reddy  staff  11357 Aug 20  2021 LICENSE
-rw-r--r--@  1 Reddy  staff   3225 Oct 16 14:30 CONTRIBUTING.rst
drwxr-xr-x  12 Reddy  staff    384 Oct 16 14:30 docs
-rw-r--r--@  1 Reddy  staff    430 Oct 16 14:30 tox.ini
-rw-r--r--@  1 Reddy  staff     95 Oct 16 14:49 requirements_dev.txt
drwxr-xr-x  11 Reddy  staff    352 Oct 16 15:36 protocol
-rw-r--r--@  1 Reddy  staff    686 Oct 16 16:01 README.rst
-rwxr--r--@  1 Reddy  staff     66 Oct 16 16:03 cmd2pkg
-rw-r--r--@  1 Reddy  staff   1078 Oct 16 16:46 pyproject.toml
$ 16:54:03 Quark-2 protocol >>  hatch build
[sdist]
dist/protocol-0.1.tar.gz

[wheel]
dist/protocol-0.1-py3-none-any.whl
$ 16:54:10 Quark-2 protocol >>  hatch publish
dist/protocol-0.1.tar.gz ... failed
Error uploading to repository: https://upload.pypi.org/legacy/ - Client error '400 Only one sdist may be uploaded per release.' for url 'https://upload.pypi.org/legacy/'
For more information check: https://httpstatuses.com/400
$ 16:54:21 Quark-2 protocol >>  

cc @sinhaharsh

You need a new version number (probably 0.2?). 0.1 was released in 2018: https://pypi.org/project/protocol/

Releases are permanent and non-overridable on PyPI for security reasons.

thanks - that worked!

i wish pypi gave me a more intuitive message saying "this version already exists on pypi, use a different version number etc"