title: How am I supposed to register a package to PyPI?
body: <p>In the documentation for <a href="https://packaging.python.org/distributing/" rel="noreferrer">packaging and distributing Python packages</a>, it says to use <code>twine</code> with <code>repository = https://upload.pypi.org/legacy/</code> in <code>.pypirc</code>. Now this URL is both – from the last bit of it – a legacy way to do things, and a non-existing one at that:</p>
  
  <pre><code>$ twine register dist/scriptdoctest-0.1-py2.py3-none-any.whl 
  Registering package to https://upload.pypi.org/legacy/
  Enter your username: MyUserName
  Enter your password: 
  Registering scriptdoctest-0.1-py2.py3-none-any.whl
  HTTPError: 410 Client Error: This API is no longer supported, instead simply upload the file. for url: https://upload.pypi.org/legacy/
  </code></pre>
  
  <p>Is using <code>scriptdoctest.egg-info/PKG-INFO</code> now the preferred and only way to register a package, or is there some other way to do this with <code>twine</code> or some other CLI tool?</p>