-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup.py register fails with -r argument #57824
Comments
$ 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
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/register.py", line 47, in run
self._set_config()
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] ...]
... |
Ubuntu 11.10 |
Does it do the same with http instead of https? |
Can't test right now. |
Maybe related to (or same as) bpo-11473. |
setup.py register
fails with -r argument
It is ok with http://pypi.python.org/pypi, but not with http://pypi.python.org, for example. Complaining that http://pypi.python.org is not found in .pypirc |
Tested on Windows. Test is attached. |
Thanks, this helps. |
Better test case. |
Fix. |
Soo.. |
The repository URL has been changed to https://pypi.python.org/pypi in 2b5cd6d4d149. I'm -1 on making https://pypi.python.org/ a special case. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: