3
0
mirror of https://git.launchpad.net/ubuntu-dev-tools synced 2025-03-13 16:11:15 +00:00

112 Commits

Author SHA1 Message Date
Ursula Junque (Ursinha)
6fea8fb542 Fix behavior of getBinaryPackage in lpapicache
It was using the same parameters to get Source and Binary packages build
history, but source packages need a distro series, and binary packages
need distro arch series, as the results are arch dependent.

Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2017-04-30 20:02:06 +02:00
Dimitri John Ledkov
1bbedd4ddd lpapicache 2014-12-18 20:28:48 +00:00
Dimitri John Ledkov
0c211c1bc7 lp/libsupport.py 2014-12-16 02:54:30 +00:00
Benjamin Drung
9baf39a262 seeded-in-ubuntu: State in error message that it takes a source package.
LP: 
2012-07-26 21:40:49 +02:00
Stefano Rivera
a55229619e Pass the launchpadlib person object to copyPackages 2011-12-07 15:46:09 +02:00
Stefano Rivera
dc9d6b5bf3 Add sponsorship support 2011-12-07 00:23:22 +02:00
Stefano Rivera
3ea5038905 PEP8 and docstring improments 2011-12-03 22:44:13 +02:00
Stefano Rivera
e556fdae00 New Tool: who-can-upload (LP: ) 2011-12-02 18:59:46 +02:00
Stefano Rivera
75067b3cf3 Add getPublishedBinaries to lpapicache.Archive 2011-12-02 15:01:19 +02:00
Stefano Rivera
9ba1790863 pull-lp-source, requestbackport: Take the latest version from any
non-backports pocket. Implemented by making lpapicache's getSourcePackage
smarter.
2011-11-23 01:45:49 +02:00
Stefano Rivera
70a035f13d Use httplib2 everywhere that we do https. The python stdlib doesn't do
certificate verification.
2011-11-22 15:57:02 +02:00
Stefano Rivera
82951a2716 Copyright notice 2011-11-15 01:50:55 +02:00
Stefano Rivera
2e217ac51e Add BinaryPackagePublishingHistory to lpapicache 2011-11-15 01:50:04 +02:00
Stefano Rivera
09e468211a Add changelog retrieval to lpapicache, and use this in syncpackage and
requestsync. The changelogs should be available in Launchpad sooner than
Debian PTS.
2011-11-13 22:50:34 +02:00
Stefano Rivera
6ee66a6efc Debian source publication records are all Published now, not pending
(LP: )
2011-09-09 19:11:48 +02:00
Benjamin Drung
ce2f96bc0d Make pylint happier and code more PEP-8 compliant. 2011-08-20 11:31:02 +02:00
Colin Watson
f8d4866cbc move copyPackage into lpapicache for better encapsulation 2011-08-16 18:07:58 +01:00
Colin Watson
e8b02a39b2 monkeypatching doesn't work right; extend Launchpad.login instead 2011-08-16 16:20:29 +01:00
Colin Watson
122e711d28 syncpackage: Convert to new LP API, with --no-lp available for the old
style of operation.
2011-08-16 15:32:48 +01:00
Stefano Rivera
3d7657e466 * Remove ubuntutools.lp.libsupport.get_launchpad, no longer used. 2011-03-01 00:32:36 +02:00
Stefano Rivera
997fb23b2d Use Launchpadlib.login_with() directly in scripts. 2011-03-01 00:30:54 +02:00
Stefano Rivera
fe63eaec05 * Remove ubuntutools.lp.libsupport.approve_application, no longer used. 2011-02-28 23:56:09 +02:00
Stefano Rivera
ebe9bfe05b Remove ubuntutools.lp.libsupporttranslate_api_web, no longer used. 2011-02-24 16:34:29 +02:00
Stefano Rivera
755166deec Strip out old launchpad credential handling code 2011-02-24 16:25:20 +02:00
Stefano Rivera
adc2b7869d Allow reusing existing Launchpads with lpapicache 2010-12-29 22:50:00 +02:00
Stefano Rivera
58559d9db8 Help silence pylint 2010-12-26 21:56:05 +02:00
Stefano Rivera
0a64cae0da Use keyword args when getting series 2010-12-24 13:47:02 +02:00
Benjamin Drung
c28ddf5698 Wrap all long lines in ubuntutools. 2010-12-23 20:42:21 +01:00
Stefano Rivera
f01beda01c Convert last Python code from mixed tabs and spaces to spaces 2010-12-22 23:04:29 +02:00
Stefano Rivera
a435c3234b Use the improved staging support in lpapicache 2010-12-21 21:52:12 +02:00
Michael Bienia
2e2376d854 ubuntutools/lp/lpapicache.py: The wrapper classes now use the root uri from the
Launchpad object for checking the resource type during runtime (the root uri
  doesn't need to be known at import time anymore)
2010-12-21 18:57:29 +01:00
Michael Bienia
6e214de3b3 ubuntutools/lp/lpapicache.py: Replace tabs with spaces 2010-12-12 11:46:07 +01:00
Benjamin Drung
100ba7d1b5 Remove all trailing tabs. 2010-12-03 00:10:41 +01:00
Benjamin Drung
1943df29eb Remove all trailing spaces. 2010-12-03 00:06:43 +01:00
Benjamin Drung
533fac4911 requestsync, ubuntutools/lp/lpapicache.py: Import functions explicitely. 2010-09-22 14:07:23 +02:00
Stefano Rivera
a2a4fc785d ubuntutools/lp/libsupport.py: Support production API URLs in
translate_web_api.
2010-09-22 11:41:58 +02:00
Iain Lane
0021522956 all: Use production API rather than edge by default. Should be more
reliable and was advised by lifeless (LP team).
2010-09-14 09:30:04 +01:00
Michael Bienia
1e7993df3e ubuntutools/lp/lpapicache.py: The LP API function archive.checkUpload() throws
an exception when the person has no upload rights.
2010-07-22 21:13:20 +02:00
Michael Bienia
924f910335 ubuntutools/lp/lpapicache.py: use the new LP API function archive.checkUpload() to check upload permissions 2010-07-11 18:41:14 +02:00
Michael Bienia
dfc59c0558 ubuntutools/lp/lpapicache.py: Also specify the LP API version to use when
using anonymous login.
2010-03-20 19:58:13 +01:00
Michael Bienia
5babcfe869 ubuntutools/lp/udtexceptions.py: Rename PocketDoesNotExistException to PocketDoesNotExistError. 2010-03-20 19:27:40 +01:00
Michael Bienia
e4e8f156bd * ubuntutools/lp/lpapicache.py, ubuntutools/lp/libsupport.py: Add support
for different LP API versions.
* ubuntutools/lp/__init__.py: Set the '1.0' LP API version as default.
* massfile: Updated to 1.0 LP API.
2010-03-20 18:27:31 +01:00
Michael Bienia
8377c6bfa3 ubuntutools/lp/lpapicache.py:
* Specify __all__
2010-02-20 18:19:44 +01:00
Michael Bienia
f5c6695e13 ubuntutools/lp/lpapicache.py:
* Make PersonTeam.getMe() a class property (PersonTeam.me).
ubuntutools/requestsync/lp.py, ubuntu-build:
* Update for the above mentioned change.
2010-02-20 18:13:15 +01:00
Michael Bienia
8c114519e8 ubuntutools/lp/lpapicache.py:
* Add support for anonymous login to the Launchpad singleton.
ubuntutools/lp/udtexceptions.py:
* Add AlreadyLoggedInError
2010-02-20 17:07:03 +01:00
Michael Bienia
0dfe4b4731 ubuntutools/lp/lpapicache.py:
* PersonTeam.canUploadPackage() can now also check package sets for upload
  permissions. This requires now to also pass the distroseries as package sets
  are per distroseries.
* Drop PersonTeam.isPerPackageUploader() as it's also handled by canUploadPackage()
ubuntu-build: Update for the PersonTeam.canUploadChange().
ubuntutools/requestsync/{lp,mail}.py:
* needSponsorship() now also expects a release name because of the above mentioned
  change to PersonTeam.canUploadPackage().
requestsync: Update for needSponsorship() change.
2010-02-20 15:48:48 +01:00
Michael Bienia
caafd18fb9 ubuntutools/lp/lpapicache.py:
Re-add dropped "beta/" to the resource type URLs
 Use lookup_service_root() when checking for LP API URLs
2010-02-20 15:18:52 +01:00
Michael Bienia
b101712009 ubuntutools/lp/lpapicache.py: Add __repr__() to the BaseWrapper class 2010-02-12 19:36:08 +01:00
Michael Bienia
4f21ae1cd0 Replace translate_service() from ubuntutools.lp.libsupport with calls to
lookup_service_root() from launchpadlib.uris.
2010-02-12 18:47:02 +01:00
Michael Bienia
a33a5c106b ubuntutools/lp/__init__.py: Define the default LP service to use (default: edge)
ubuntutools/lp/__init__.py: Don't hardcode the LP service root but look it up instead
debian/control: Depend on python-launchpadlib >= 1.5.4 because of this
2010-02-06 01:53:29 +01:00