forked from openlp/openlp
Change the Launchpad credential storage to an unencrypted file
This commit is contained in:
parent
2e5ab6bfd4
commit
e4cd6c2e63
@ -1,8 +1,12 @@
|
|||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python2
|
||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
|
from launchpadlib.credentials import UnencryptedFileCredentialStore
|
||||||
from launchpadlib.launchpad import Launchpad
|
from launchpadlib.launchpad import Launchpad
|
||||||
|
|
||||||
|
HERE = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
"""
|
"""
|
||||||
@ -20,7 +24,8 @@ def get_merge_proposal(merge_proposal_url):
|
|||||||
"""
|
"""
|
||||||
Get the merge proposal for the ``merge_proposal_url``
|
Get the merge proposal for the ``merge_proposal_url``
|
||||||
"""
|
"""
|
||||||
lp = Launchpad.login_with('OpenLP CI', 'production', version='devel')
|
lp = Launchpad.login_with('OpenLP CI', 'production', version='devel',
|
||||||
|
credential_store=UnencryptedFileCredentialStore(os.path.join(HERE, 'launchpadcreds.txt')))
|
||||||
openlp_project = lp.projects['openlp']
|
openlp_project = lp.projects['openlp']
|
||||||
merge_proposals = openlp_project.getMergeProposals()
|
merge_proposals = openlp_project.getMergeProposals()
|
||||||
for merge_proposal in merge_proposals:
|
for merge_proposal in merge_proposals:
|
||||||
|
Loading…
Reference in New Issue
Block a user