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

Trouble with the packaging tutorial #758

Open
daw3rd opened this issue May 8, 2024 · 1 comment
Open

Trouble with the packaging tutorial #758

daw3rd opened this issue May 8, 2024 · 1 comment

Comments

@daw3rd
Copy link

daw3rd commented May 8, 2024

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

  1. check_availability is not consistent with twine
  2. 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 &#x27;data-prep-kit&#x27; 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
@merwok
Copy link

merwok commented May 9, 2024

Where does the check-availability command come from?

It seems that it doesn’t follow current PyPI policy for restrictions on similar names.

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