~neon/project-neon5/orchestration

« back to all changes in this revision

Viewing changes to ppa/autobuild.py

  • Committer: Harald Sitter
  • Date: 2014-09-02 07:09:31 UTC
  • Revision ID: apachelogger@ubuntu.com-20140902070931-ver4wpizk2fida9g
introducing the all new lunchpad turd

https://bugs.launchpad.net/launchpadlib/+bug/789296

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from launchpadlib.launchpad import Launchpad
25
25
import datetime
26
26
 
 
27
import argparse
 
28
parser = argparse.ArgumentParser(description="lunchpadlib turd")
 
29
parser.add_argument("-c", "--credentials", help="Location of the credenticals file")
 
30
args = parser.parse_args()
 
31
 
 
32
if args.credentials:
 
33
    lp = Launchpad.login_with("kubuntu-dev-tools", "production", credentials_file=args.credentials)
 
34
else:
 
35
    lp = Launchpad.login_with("kubuntu-dev-tools", "production")
 
36
 
27
37
date_today = datetime.datetime.utcnow().date()
28
38
 
29
 
lp = Launchpad.login_with("kubuntu-dev-tools", "production")
30
 
 
31
39
def getPPAObject(owner, PPA):
32
40
    return lp.people[owner].getPPAByName(name=PPA)
33
41