Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with publishing #691

Closed
raamana opened this issue Oct 16, 2023 · 2 comments
Closed

issues with publishing #691

raamana opened this issue Oct 16, 2023 · 2 comments

Comments

@raamana
Copy link

raamana commented Oct 16, 2023

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

@henryiii
Copy link
Contributor

henryiii commented Oct 16, 2023

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.

@raamana
Copy link
Author

raamana commented Oct 16, 2023

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"

@raamana raamana closed this as completed Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants