title: Python - pypi upload error with twine
body: <p>I have a package for which local installation and distribution work correctly. However, when I try to upload it to pypi with twine, I get the following error message:</p>
  
  <blockquote>
    <p>$ twine upload dist/mypackage.tar.gz<br>
    Uploading distributions to <a href="https://upload.pypi.org/legacy" rel="nofollow noreferrer">https://upload.pypi.org/legacy</a><br>
    Uploading mypackage.tar.gz<br>
    HTTPError: 400 Client Error: author_email: Invalid email address. for url: <a href="https://upload.pypi.org/legacy" rel="nofollow noreferrer">https://upload.pypi.org/legacy</a>  </p>
  </blockquote>
  
  <p>By the way, I tried also commenting the <code>author_email</code> field in setup.py, but the error still remains and I don't think it is related to setup.py.</p>
  
  <p>I tried creating <code>.pypirc</code> with no repository specification, as well as without using it at all.</p>
  
  <p>I tried also using setup upload, but  this also failed with a   </p>
  
  <blockquote>
    <p>$ Upload failed (410) gone: (This API has been deprecated...</p>
  </blockquote>
  
  <p>As I understand pypi repos are currently in transition phase, but I can't figure out where the problem is.</p>
  
  <p>I'm running twine 1.9.1. and python 3.5.2 (Ubuntu 16.04).</p>
  
  <p>Hope you can help me!</p>
  
  <p>[SOLVED]</p>
  
  <p>It turned out that email address did not match with author name. Changing email address accordingly worked for me.</p>