Authenticating to use launchpad now defaults to an encrypted keyring,
which requires the user to enter a keyring password
interactively. Enable using a plain-text file explicitly or via an
environment variable to bypass this to improve automation.
Change-Id: Ifed22f7c178b1e62e7b5e95d0f8810633ba46fb1
This fixes all the warnings emitted by flake8, mostly involving
qualified imports, import grouping, and indentation.
Change-Id: Ia45839f3e65e15a34e2a2793fd21b83e4fc891d7
Needed-By: I158ea10f104549dd4f0f3ff777b39feb5886642e
The recent changes to use print() instead of print mean we started
having more newlines, which in turn means the output is much longer than
it used to be. Restore the same formatting, and fix some prints that
didn't have the () so weren't being called.
Change-Id: I55f8c8bfe899bc0bb57cdf4f4a4b49ffd146ff94
Use parentheses for `print`, 0o for an octal literal, "as" for except.
import print_function from __future__.
Change-Id: Ie76910c3e0a03e4a103f612639a1b74e84f182bb
Sometimes the user running the script doesn't have access to a bug that
is marked private and gets a 401 error. Catch *all* errors trying to
update the bug status and treat them all as failures from which we can
continue and then clean up manually.
Change-Id: Ibc37d69259e841ba80bf4d42de5b0b45678fc54b
The usage of /usr/bin/env ensures that the first interpreter
found in the environment's $PATH variable is used. This should
be preferred.
Change-Id: I4011ec477534f920092cc323a26e75ff26a90051
Add a new --milestone selection option in process_bugs.py to allow
selection of all open bugs from a given milestone.
That lets you defer bugs using:
./process_bugs.py glance --milestone juno-2 --settarget juno-3
Change-Id: I50f0081d49a491aaaa07c34f9dd9d9a608468e7f
Launchpad timeouts all the time when modifying bugs with lots of tasks.
process_bugs should fail gracefully when it's in that unfortunately
common situation.
If you only use --settarget then there will always be bugs to
process (overwrite milestone with itself). New code makes sure
you don't loop if you didn't change anything at the last loop.