Skip to content
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

Closed
techtonik mannequin opened this issue Dec 16, 2011 · 12 comments
Closed

setup.py register fails with -r argument #57824

techtonik mannequin opened this issue Dec 16, 2011 · 12 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@techtonik
Copy link
Mannequin

techtonik mannequin commented Dec 16, 2011

BPO 13615
Nosy @tarekziade, @merwok, @berkerpeksag
Files
  • test_register.py.diff
  • test_register.py.diff
  • register.py.diff
  • 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:

    assignee = 'https://github.com/merwok'
    closed_at = <Date 2016-05-21.15:14:21.425>
    created_at = <Date 2011-12-16.21:21:37.356>
    labels = ['library']
    title = 'setup.py register fails with -r argument'
    updated_at = <Date 2016-05-21.15:14:21.423>
    user = 'https://bugs.python.org/techtonik'

    bugs.python.org fields:

    activity = <Date 2016-05-21.15:14:21.423>
    actor = 'berker.peksag'
    assignee = 'eric.araujo'
    closed = True
    closed_date = <Date 2016-05-21.15:14:21.425>
    closer = 'berker.peksag'
    components = ['Distutils', 'Distutils2']
    creation = <Date 2011-12-16.21:21:37.356>
    creator = 'techtonik'
    dependencies = []
    files = ['27976', '27977', '27978']
    hgrepos = []
    issue_num = 13615
    keywords = ['patch']
    message_count = 12.0
    messages = ['149637', '149638', '150200', '150213', '150735', '174650', '175506', '175508', '175509', '175510', '177741', '266005']
    nosy_count = 5.0
    nosy_names = ['techtonik', 'tarek', 'eric.araujo', 'alexis', 'berker.peksag']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue13615'
    versions = ['3rd party', 'Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']

    @techtonik
    Copy link
    Mannequin Author

    techtonik mannequin commented Dec 16, 2011

    $ 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] ...]
    ...

    @techtonik techtonik mannequin assigned tarekziade Dec 16, 2011
    @techtonik techtonik mannequin added the stdlib Python modules in the Lib dir label Dec 16, 2011
    @techtonik
    Copy link
    Mannequin Author

    techtonik mannequin commented Dec 16, 2011

    Ubuntu 11.10

    @terryjreedy
    Copy link
    Member

    Does it do the same with http instead of https?

    @techtonik
    Copy link
    Mannequin Author

    techtonik mannequin commented Dec 24, 2011

    Can't test right now.

    @merwok
    Copy link
    Member

    merwok commented Jan 6, 2012

    Maybe related to (or same as) bpo-11473.

    @merwok merwok changed the title setup.py register fails with -r argument setup.py register fails with -r argument Jan 6, 2012
    @merwok merwok assigned merwok and unassigned tarekziade Jan 6, 2012
    @techtonik
    Copy link
    Mannequin Author

    techtonik mannequin commented Nov 3, 2012

    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

    @techtonik
    Copy link
    Mannequin Author

    techtonik mannequin commented Nov 13, 2012

    Tested on Windows. Test is attached.

    @merwok
    Copy link
    Member

    merwok commented Nov 13, 2012

    Thanks, this helps.

    @techtonik
    Copy link
    Mannequin Author

    techtonik mannequin commented Nov 13, 2012

    Better test case.

    @techtonik
    Copy link
    Mannequin Author

    techtonik mannequin commented Nov 13, 2012

    Fix.

    @techtonik
    Copy link
    Mannequin Author

    techtonik mannequin commented Dec 19, 2012

    Soo..

    @berkerpeksag
    Copy link
    Member

    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.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants