~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/account.py

  • Committer: Vincent Ladeuil
  • Date: 2016-02-07 18:23:13 UTC
  • mto: (6615.3.1 2.7)
  • mto: This revision was merged to the branch mainline in revision 6620.
  • Revision ID: v.ladeuil+lp@free.fr-20160207182313-jwz7z3vj4mpyjn7y
Ensure http://pad.lv/1323805 won't come back.

Since the 2.6.0 release pypi policy changed and release tarballs can't be
hosted on launchpad anymore, they have to be uploaded to
http://pypi.python.org/pypi


This fixes setup.py sdist to generate the right tarball with nearly the same
content as the one produced for 2.7.0.

Such a tarball have been uploaded to pypi properly signed and tested for
installation in venv.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    trace,
28
28
    transport,
29
29
    )
30
 
from bzrlib.config import AuthenticationConfig, GlobalConfig
 
30
from bzrlib.config import AuthenticationConfig, GlobalStack
31
31
from bzrlib.i18n import gettext
32
32
 
33
33
LAUNCHPAD_BASE = 'https://launchpad.net/'
55
55
        disagree about username.
56
56
    """
57
57
    if _config is None:
58
 
        _config = GlobalConfig()
 
58
        _config = GlobalStack()
59
59
 
60
 
    username = _config.get_user_option('launchpad_username')
 
60
    username = _config.get('launchpad_username')
61
61
    if username is not None:
62
62
        auth = AuthenticationConfig()
63
63
        auth_username = _get_auth_user(auth)
72
72
 
73
73
def _set_global_option(username, _config=None):
74
74
    if _config is None:
75
 
        _config = GlobalConfig()
76
 
    _config.set_user_option('launchpad_username', username)
 
75
        _config = GlobalStack()
 
76
    _config.set('launchpad_username', username)
77
77
 
78
78
 
79
79
def set_lp_login(username, _config=None):