[New-bugs-announce] [issue13615] `setup.py register` fails with -r argument

anatoly techtonik report at bugs.python.org
Fri Dec 16 22:21:37 CET 2011

New submission from anatoly techtonik <techtonik at gmail.com>:

$ python setup.py sdist register -r https://pypi.python.org/pypi upload

Creating tar archive
removing 'pager-0.2' (and everything under it)
running register
Traceback (most recent call last):
  File "setup.py", line 17, in <module>
    'Operating System :: OS Independent',
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
  File "/usr/lib/python2.7/distutils/command/register.py", line 47, in run
  File "/usr/lib/python2.7/distutils/command/register.py", line 82, in _set_config
    raise ValueError('%s not found in .pypirc' % self.repository)
ValueError: https://pypi.python.org/pypi not found in .pypirc


$ python setup.py register -h
Options for 'register' command:
  --repository (-r)   url of repository [default: http://pypi.python.org/pypi]
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

assignee: tarek
components: Distutils
messages: 149637
nosy: eric.araujo, tarek, techtonik
priority: normal
severity: normal
status: open
title: `setup.py register` fails with -r argument
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list