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
Logan Rosen
bc24ef23de
sponsor-patch: fix bugs from py3 migration
2021-02-22 22:24:52 -05:00
Dan Streetman
90e8fe81e1
replace ubuntutools.logger with standard python logging
2019-11-25 10:10:06 -05:00
Mattia Rizzolo
434ca8952e
Merge branch 'python3' of git+ssh://git.launchpad.net/ubuntu-dev-tools
...
MR: https://code.launchpad.net/~ubuntu-dev/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/372305
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2019-09-10 14:19:07 +02:00
Dan Streetman
a7d166b52f
pull-pkg: use ubuntutools/version/Version
...
instead of debian.debian_support.Version, use ubuntutools version,
which extends it and adds the strip_epoch() function which is
needed to convert full version string to version used in filenames
2019-09-09 12:25:21 -04:00
Stefano Rivera
7b2f1a713b
Remove more Python 2 fallback imports
2019-09-05 09:49:41 -03:00
Benjamin Drung
190ad30a7b
Fix invalid escape sequence '\(' or '\)' (found by flake8)
...
flake8 found issues:
ubuntutools/sponsor_patch/bugtask.py:46:11: W605 invalid escape sequence '\('
ubuntutools/sponsor_patch/bugtask.py:62:50: W605 invalid escape sequence '\('
ubuntutools/sponsor_patch/bugtask.py:62:58: W605 invalid escape sequence '\)'
setup.py:14:8: W605 invalid escape sequence '\('
setup.py:14:14: W605 invalid escape sequence '\)'
Fix these issues by marking these strings as raw strings.
2018-10-06 18:04:25 +02:00
Benjamin Drung
cc7170eccb
Fix all flake8 issues
2017-05-01 00:20:03 +02:00
Dimitri John Ledkov
e20d125709
bugtask
2014-12-18 20:51:24 +00:00
Benjamin Drung
c2aa97dba2
Move devscripts.logger to ubuntutools.logger.
2013-03-19 00:18:02 +01:00
Stefano Rivera
948032d8a3
Support syncs from a non-default series (LP: #931644 )
2012-02-15 15:16:30 +02:00
Stefano Rivera
aafcbd082e
sponsor-patch: Support syncs of new packages.
2012-02-15 15:05:46 +02:00
Stefano Rivera
42e8c8b643
sponsor-patch: Check the bug's title, not the task, when determining
...
source series for syncs.
2011-11-27 17:30:14 +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
Benjamin Drung
663cb5214f
sponsor-patch: Check if the version of a sync request is mentioned in the bug title.
2011-09-15 13:37:22 +02:00
Benjamin Drung
5942694e6f
sponsor-patch: Use old Archive Admin way for sync requests until bug #827555 is fixed.
2011-09-15 13:08:06 +02:00
Benjamin Drung
1e126f74d1
sponsor-patch: More refactoring.
2011-09-10 21:28:28 +02:00
Benjamin Drung
7a08470ca1
ubuntutools/sponsor_patch/bugtask.py: Check for sync too.
2011-09-10 16:43:41 +02:00
Stefano Rivera
6ee66a6efc
Debian source publication records are all Published now, not pending
...
(LP: #845487 )
2011-09-09 19:11:48 +02:00
Benjamin Drung
a03fa654f3
Move debian-distro-info, distro-info, and ubuntu-distro-info from
...
ubuntu-dev-tools into distro-info.
2011-06-25 17:53:44 +02:00
Benjamin Drung
e8b3a18c45
Move suspicious-source and wrap-and-sort from ubuntu-dev-tools into devscripts.
2011-05-23 23:41:00 +02:00
Benjamin Drung
1a8951e82d
Use new ubuntutools.distro_info in various scripts.
2011-01-21 19:20:04 +01:00
Benjamin Drung
fbe27a7ce4
Split objects out of sponsor-patch script.
2010-12-17 17:32:38 +01:00