pypa / packaging-problems

An issue tracker for the problems in packaging
150 stars 35 forks source link

Unable to upload: The name 'asyncio-queue' isn't allowed. #842

Open nbecker opened 1 week ago

nbecker commented 1 week ago

Problem description

I initially created a project I called asyncio-queue. When I tried to upload to pypi it failed with the message The name 'asyncio-queue' isn't allowed.

Fine. I changed the name to asyncio_queue. I changed every reference to the old name, in setup.py, README.md. Recursive grep shows there are NO occurances of that string anywhere. I deleted all the builds. I bumped the version number. I rebuilt. I still get:

Uploading asyncio_queue-1.0.2-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.1/14.1 kB • 00:00 • 59.6 MB/s

INFO     Response from https://upload.pypi.org/legacy/:                         
         400 The name 'asyncio-queue' isn't allowed. See                        
         https://pypi.org/help/#project-name for more information.              
INFO     <html>                                                                 
          <head>                                                                
           <title>400 The name 'asyncio-queue' isn't allowed. See               
         https://pypi.org/help/#project-name for more information.</title>      
          </head>                                                               
          <body>                                                                
           <h1>400 The name 'asyncio-queue' isn't allowed. 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;asyncio-queue&#x27; isn&#x27;t allowed. 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 'asyncio-queue' isn't allowed. See                            
         https://pypi.org/help/#project-name for more information.            
merwok commented 6 days ago

There is a module asyncio.queues in the standard library, so I would guess that the name rules prohibit your module because it’s too close (- for . and s removed).

Third-party modules are often named with aio rather than asyncio: aiofiles, aiohttp, aiopg… You could try that naming convention. Or maybe queue-asyncio.