PyPi cannot upload package due to not asking for username
Closed this issue · 3 comments
PythonCoderAS commented
I am having trouble uploading a package. Why is this?
Code:
$ python setup.py register sdist upload
running register
running egg_info
writing markdowntable.egg-info\PKG-INFO
writing dependency_links to markdowntable.egg-info\dependency_links.txt
writing top-level names to markdowntable.egg-info\top_level.txt
reading manifest file 'markdowntable.egg-info\SOURCES.txt'
writing manifest file 'markdowntable.egg-info\SOURCES.txt'
running check
We need to know who you are, so please choose either:
1. use your existing login,
2. register as a new user,
3. have the server generate a new password for you (and email it to you), or
4. quit
Your selection [default 1]:
1
Username: PokestarFan
Password:
Registering markdowntable to https://upload.pypi.org/legacy/
Server response (410): Project pre-registration is no longer required or supported, so continue directly to uploading files.
running sdist
creating markdowntable-0.1
creating markdowntable-0.1\markdowntable
creating markdowntable-0.1\markdowntable.egg-info
copying files to markdowntable-0.1...
copying README.md -> markdowntable-0.1
copying setup.py -> markdowntable-0.1
copying markdowntable\__init__.py -> markdowntable-0.1\markdowntable
copying markdowntable.egg-info\PKG-INFO -> markdowntable-0.1\markdowntable.egg-info
copying markdowntable.egg-info\SOURCES.txt -> markdowntable-0.1\markdowntable.egg-info
copying markdowntable.egg-info\dependency_links.txt -> markdowntable-0.1\markdowntable.egg-info
copying markdowntable.egg-info\top_level.txt -> markdowntable-0.1\markdowntable.egg-info
copying markdowntable.egg-info\zip-safe -> markdowntable-0.1\markdowntable.egg-info
Writing markdowntable-0.1\setup.cfg
Creating tar archive
removing 'markdowntable-0.1' (and everything under it)
running upload
Password:
Submitting dist\markdowntable-0.1.tar.gz to https://upload.pypi.org/legacy/
Upload failed (403): Invalid or non-existent authentication information.
error: Upload failed (403): Invalid or non-existent authentication information.
The setup.py
from setuptools import setup
setup(name='markdowntable',
version='0.1',
description='Easy way to make markdown code for tables',
url='https://github.com/PokestarFan/Python-Markdown-Table',
author='PokestarFan',
author_email='pokestarfan@yahoo.com',
license='MIT',
packages=['markdowntable'],
zip_safe=True)
ewdurbin commented
see the tutorial at https://packaging.python.org/tutorials/distributing-packages/#create-an-account (specifically the note about .pypirc
)
themightyoarfish commented
Unfortunately, that link only covers uploading to TestPyPi, not PyPi and makes no mention of .pypirc
ewdurbin commented
Thanks for raising this @themightyoarfish! Links on the internet are a hell of a thing!
If someone arrives here looking for information (valid as of 2018-10-17) on: