37 Commits

Author SHA1 Message Date
Benjamin Drung
4e27045f49 style: Sort Python imports with isort
```
isort -l 99 --profile=black .
```

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 21:28:47 +01:00
Benjamin Drung
3354b526b5 style: Format Python code with black
```
PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .)
black -C -l 99 . $PYTHON_SCRIPTS
```

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 19:45:36 +01:00
Benjamin Drung
932166484b Fix issues found by flake8 on the Python scripts
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 19:29:30 +01:00
Krytarik Raido
0f3d2fed2a
requestbackport: Adapt to new backports policy (LP: #1959115)
As documented on <https://wiki.ubuntu.com/UbuntuBackports>

Template update done by Unit 193.

Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2023-01-15 18:14:48 +01:00
Dan Streetman
0eeb93ee0c logging: update ubuntutools.getLogger() to output to stdout/stderr correctly
Python logging by default sends all output to stderr, but that's not what
normal programs usually do and is not expected for these scripts.

Change the ubuntutools.getLogger() method to return a logger with handlers
correctly set up to send INFO level (or lower) logs to stdout and WARNING
level (or higher; technically INFO+1 level or higher) logs to stderr.

This results in normally logged output going to stdout and warnings/errors
going to stderr, as expected.
2021-02-02 06:25:12 -05:00
Dan Streetman
90e8fe81e1 replace ubuntutools.logger with standard python logging 2019-11-25 10:10:06 -05:00
Mattia Rizzolo
463d1f63a8
requestbackport: Error out nicely when a tracking project doens't exist.
LP: #1852901
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2019-11-21 16:20:02 +01:00
Stefano Rivera
8bdf4f839a requestbackport: In python3, Entry isn't hashable 2019-09-04 19:32:59 -03:00
Stefano Rivera
7c0efe2914 Port requestbackport to Python 3 2019-09-04 19:24:44 -03:00
Benjamin Drung
cc7170eccb Fix all flake8 issues 2017-05-01 00:20:03 +02:00
Benjamin Drung
c2aa97dba2 Move devscripts.logger to ubuntutools.logger. 2013-03-19 00:18:02 +01:00
Stefano Rivera
b3f16cbee2 * requestbackport:
- Avoid duplicate Reverse-Build-Deps when sources build binaries of the
    same name.
  - Explain that backports aren't to fix bugs.
2012-07-18 12:53:50 +02:00
Stefano Rivera
d3971342d8 request-backport: Avoid duplicate Reverse-Build-Deps when sources build
binaries of the same name.
2012-07-18 12:45:47 +02:00
Stefano Rivera
430fc81aab Check that there are published binaries (i.e. not stuck in bin-NEW). 2011-11-25 15:40:05 +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
7dfb6c3ed7 requestbackport: Check for existing backport bugs first. 2011-11-22 23:48:30 +02:00
Stefano Rivera
35b742c1e8 s/progname/prog/ 2011-11-15 12:58:04 +02:00
Stefano Rivera
2e217ac51e Add BinaryPackagePublishingHistory to lpapicache 2011-11-15 01:50:04 +02:00
Stefano Rivera
dd7c37e130 package isn't used any more 2011-11-15 01:40:23 +02:00
Stefano Rivera
1a507e34b0 Whoops placeholders had incorect parity 2011-11-13 22:54:32 +02:00
Stefano Rivera
0838fc6390 Actually include the package name in the backportpackage command 2011-11-13 21:16:15 +02:00
Stefano Rivera
3d6d497df3 Don't substitute user's username into the backportpackage example command 2011-11-13 21:09:48 +02:00
Stefano Rivera
d4fbed617f Use EditBugReport instead of requestsync's edit_report. Drop that. 2011-11-13 20:15:19 +02:00
Stefano Rivera
ad463fb831 Only display reverse dependency section when there are any 2011-11-13 02:25:42 +02:00
Stefano Rivera
ce61a43a13 Installs and runs 2011-11-13 02:06:52 +02:00
Stefano Rivera
c4c758cc17 Provide installs & removes cleanly checkboxes for each binary package 2011-11-13 02:00:06 +02:00
Stefano Rivera
6e4c276d1f Update metadata 2011-11-12 13:12:15 +02:00
Stefano Rivera
f6344a01c5 Add bir testing 2011-11-12 11:22:55 +02:00
Stefano Rivera
20cb64e557 If the user names a binary package, determine the source package 2011-11-12 10:57:16 +02:00
Stefano Rivera
84e7c2ccab devscripts.logger 2011-11-12 10:42:47 +02:00
Stefano Rivera
840421c7c6 Look up the reverse dependencies in the target releases, for each binary package build by this source package in the source release 2011-11-12 01:54:04 +02:00
Stefano Rivera
222ab46cff Use a seeded defaultdict for the intermediate data structure, in case of binary package name differences between releases 2011-11-12 01:20:47 +02:00
Stefano Rivera
d125c47081 Iterate over all destination releases 2011-11-12 01:04:11 +02:00
Stefano Rivera
6155633e85 Display reverse depends in requestbackport 2011-11-12 00:46:48 +02:00
Stefano Rivera
f712a32238 Reset support_gap at LTSs 2011-11-08 00:03:45 +02:00
Stefano Rivera
6be22ce24b Tidy up 2011-11-07 23:35:14 +02:00
Stefano Rivera
532e055b7c Requestbackport script 2011-11-07 23:20:37 +02:00