packaging-problems
packaging-problems copied to clipboard
Trouble with the packaging tutorial
OS version
Mac
Python version
Python 3.10.11
Pip version
Pip 24.0
Guide link
https://packaging.python.org/tutorials/packaging-projects
Problem description
I am getting a naming collision when trying to publish data-prep-kit using twine. It seems to be colliding with with Data-Prep-Kit-SM at https://pypi.org/project/Data-Prep-Kit-SM/, at least that seems to be the closest one. Per check_availability, it would seem to be available.
$ check-availability pypi data-prep-kit --verbose 3
GET https://pypi.org/project/data-prep-kit
Got status code 404
The name data-prep-kit is available on pypi
So, maybe 2 issues
- check_availability is not consistent with twine
- the names seem distinguished
I would prefer to use data-prep-kit if possible. Thanks.
Error message
python -m twine check dist/*
Checking dist/data_prep_kit-0.0.1-py3-none-any.whl: PASSED
Checking dist/data_prep_kit-0.0.1.tar.gz: PASSED
python -m twine upload --verbose --non-interactive dist/*
INFO Using configuration from /Users/dawood/.pypirc
Uploading distributions to https://upload.pypi.org/legacy/
INFO dist/data_prep_kit-0.0.1-py3-none-any.whl (66.0 KB)
INFO dist/data_prep_kit-0.0.1.tar.gz (291.9 KB)
INFO password set from config file
INFO username: __token__
INFO password: <hidden>
Uploading data_prep_kit-0.0.1-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 73.2/73.2 kB • 00:00 • 208.8 MB/s
INFO Response from https://upload.pypi.org/legacy/:
400 The name 'data-prep-kit' is too similar to an existing project. See https://pypi.org/help/#project-name for more information.
INFO <html>
<head>
<title>400 The name 'data-prep-kit' is too similar to an existing project. See https://pypi.org/help/#project-name for more information.</title>
</head>
<body>
<h1>400 The name 'data-prep-kit' is too similar to an existing project. See https://pypi.org/help/#project-name for more information.</h1>
The server could not comply with the request since it is either malformed or otherwise incorrect.<br/><br/>
The name 'data-prep-kit' is too similar to an existing project. See https://pypi.org/help/#project-name for more information.
</body>
</html>
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
The name 'data-prep-kit' is too similar to an existing project. See https://pypi.org/help/#project-name for more information.
make: *** [publish] Error 1
Where does the check-availability command come from?
It seems that it doesn’t follow current PyPI policy for restrictions on similar names.