audreyfeldroy / cookiecutter-pypackage

Cookiecutter template for a Python package.
BSD 3-Clause "New" or "Revised" License
4.26k stars 1.78k forks source link

python setup.py register seems to be deprecated #600

Open vlizanae opened 4 years ago

vlizanae commented 4 years ago

Description

I'm following the pypi release checklist for the first time, which states:

Before your first release:

  1. Register the package on PyPI: python setup.py register
  2. Visit PyPI to make sure it registered.

However, running the command shows several deprecation warning and a bad response, and visiting the site I can confirm the package is not there.

What I Did

(venv_dev) [vlizana@localhost project]$ python setup.py register
running register
running egg_info
creating project.egg-info
writing project.egg-info/PKG-INFO
writing dependency_links to project.egg-info/dependency_links.txt
writing top-level names to project.egg-info/top_level.txt
writing manifest file 'project.egg-info/SOURCES.txt'
reading manifest file 'project.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.png' under directory 'docs'
warning: no files found matching '*.gif' under directory 'docs'
writing manifest file 'project.egg-info/SOURCES.txt'
running check
warning: Check: This command has been deprecated. Use `twine check` instead: https://packaging.python.org/guides/making-a-pypi-friendly-readme#validating-restructuredtext-markup

The project's long description is valid RST.
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]: 

Username: vlizana
Password: 
Registering project to https://upload.pypi.org/legacy/
Server response (410): Project pre-registration is no longer required or supported, upload your files instead.
WARNING: Registering is deprecated, use twine to upload instead (https://pypi.org/p/twine/)
vlizanae commented 4 years ago

The whole page seems to be quite obsolete, there are two references at the end that are broken links, pyup detected vulnerabilities on requirements_dev and every package is outdated, in particular I spent a lot of time trying to get tox to work only to find out it was an already patched bug.