1
# -*- coding: utf-8 -*-
2
# Copyright 2009 Canonical Ltd.
3
# Author 2009 Didier Roche
5
# This file is part of Quickly ubuntu-project-template
7
#This program is free software: you can redistribute it and/or modify it
8
#under the terms of the GNU General Public License version 3, as published
9
#by the Free Software Foundation.
11
#This program is distributed in the hope that it will be useful, but
12
#WITHOUT ANY WARRANTY; without even the implied warranties of
13
#MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
14
#PURPOSE. See the GNU General Public License for more details.
16
#You should have received a copy of the GNU General Public License along
17
#with this program. If not, see <http://www.gnu.org/licenses/>.
23
from quickly import launchpadaccess
24
from internal import quicklyutils
26
launchpad = launchpadaccess.initialize_lpi()
29
launchpadaccess.link_project(launchpad, "Change your launchpad project")
30
quicklyutils.set_setup_value('author', launchpad.me.display_name)
31
quicklyutils.set_setup_value('author_email', launchpad.me.preferred_email_address.email)
33
# get the project now and save the url into setup.py
34
project = launchpadaccess.get_project(launchpad)
35
quicklyutils.set_setup_value('url', launchpadaccess.launchpad_url + '/' + project.name)