title: PyPi AssertionError: unsupported schema
body: <p>I'm trying to upload my package to PyPi and came up with this error:</p>
  
  <pre><code>  Traceback (most recent call last):
    File "setup.py", line 11, in &lt;module&gt;
      author_email= #my email,
    File "C:\Programming\Python\Anaconda\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "C:\Programming\Python\Anaconda\lib\distutils\dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "C:\Programming\Python\Anaconda\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Programming\Python\Anaconda\lib\distutils\command\upload.py", line 63, in run
      self.upload_file(command, pyversion, filename)
    File "C:\Programming\Python\Anaconda\lib\distutils\command\upload.py", line 73, in upload_file
      raise AssertionError("unsupported schema " + schema)
  </code></pre>
  
  <p>Since <code>python setup.py register -r pypitest</code> is no longer needed to upload the package, I run this command: <code>python setup.py sdist upload -r pypitest</code>, and the error comes in after I type in my password for pypitest</p>
  
  <p>Here is how my <code>setup.py</code> and <code>.pypirc</code> files looks like.</p>
  
  <p>setup.py</p>
  
  <pre><code>from setuptools import setup
  
  setup(
        name='instapi',
        packages=['instapi'],
        version='0.1',
        description='Clean and simple Instagram API for Python 3.x',
        url='https://github.com/SemptraStar/instapi',
        download_url = 'https://github.com/SemptraStar/instapi/archive/v._0.1.tar.gz',
        author= #me,
        author_email= #also me,
  )
  </code></pre>
  
  <p>.pypirc</p>
  
  <pre><code>[distutils]
  index-servers =
    pypi
    pypitest
  
  [pypi]
  repository=https://pypi.python.org/pypi
  username= # username
  password= # password
  
  [pypitest]
  repository=https://testpypi.python.org/pypi
  username= # username
  password= # password
  </code></pre>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>I changed repository URL's to <code>https://upload.pypi.org/legacy/</code> for pypi and <code>https://test.pypi.org/legacy/</code> for pypitest. Also updated setuptools for the latest version (36.3.0). Nothing changed.</p>