upload command does not work with --repository <section>

Issue #348 new
Chris Jerdonek
created an issue

Using version 0.6.34, Distribute's upload command does not work when passing a .pypirc section value to the --repository flag, even though this works with the register command:

Also see the related issue #346.

$ python setup.py register -r test
using: version '0.6' of <module 'setuptools' from '.../python2.7/site-packages/setuptools/__init__.pyc'>
Registering Foo to http://testpypi.python.org/pypi
Server response (200): OK

$ python setup.py sdist upload -r test
using: version '0.6' of <module 'setuptools' from '.../python2.7/site-packages/setuptools/__init__.pyc'>
Traceback (most recent call last):
  File "setup.py", line 115, in <module>
  File "setup.py", line 111, in main
  File ".../python2.7/distutils/core.py", line 152, in setup
  File ".../python2.7/distutils/dist.py", line 953, in run_commands
  File ".../python2.7/distutils/dist.py", line 972, in run_command
  File "setup.py", line 70, in run
    return _upload.run(self)
  File ".../python2.7/site-packages/setuptools/command/upload.py", line 74, in run
    self.upload_file(command, pyversion, filename)
  File ".../python2.7/site-packages/setuptools/command/upload.py", line 159, in upload_file
    raise AssertionError, "unsupported schema "+schema
AssertionError: unsupported schema

My .pypirc file looks like this:

username: <name>
password: <removed>

index-servers =

repository: http://pypi.python.org/pypi
username: <name>
password: <removed>

repository: http://testpypi.python.org/pypi
username: <name>
password: <removed>

Comments (0)

  1. Log in to comment