Issue #348 new

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

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>
    main(sys.argv)
  File "setup.py", line 111, in main
    version=version,
  File ".../python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File ".../python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File ".../python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  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:

[server-login]
username: <name>
password: <removed>

[distutils]
index-servers =
    pypi
    test

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

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

Comments (0)

  1. Log in to comment