145 Commits

Author SHA1 Message Date
Chris Peterson
f07d3df40c running-autopkgtests: make running-autopkgtests available
Previously running-autopkgtests was added to the source but
wasn't correctly added to the scripts in setup.py, so it wasn't
actually available in the installed package. This also adds the
script to the package description.
2024-02-29 13:06:12 -08:00
Benjamin Drung
8692bc2b1c refactor(setup.py): Introduce get_debian_version
Move getting the Debian package version into a separate function and
fail in case it cannot find it or fails parsing it.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 21:56:37 +01:00
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
3bdb827516 fix: Use PEP440 compliant version in setup.py
Versions like `0.176ubuntu20.04.1` in Ubuntu are clearly not compliant
with https://peps.python.org/pep-0440/. With setuptools 66, the versions
of all packages visible in the Python environment *must* obey PEP440.

Bug: https://launchpad.net/bugs/1991606
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 14:07:23 +01:00
Dan Streetman
8fe22fbbb6 Remove hugdaylist script
The last email announcing a 'hug day' appears to have been over
5 years ago, and the hugdaylist script doesn't seem to work
right anymore anyway.

This also removes ubuntutools/lp/libsupport, which has no functions
used by anything else.
2021-11-22 13:00:52 -05:00
Dan Streetman
2cfcbdb300 Remove pull-revu-source
This script used a website that no longer exists.

Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-02-02 06:25:12 -05:00
Dan Streetman
07d7381b4d Remove reverse-build-depends
It's been warning about its deprecation since 2012.  Time to do it.

Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-02-02 06:25:12 -05:00
Dan Streetman
12c2e6bf42 test: remove unneeded stuff in test/__init__.py
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-02-02 06:25:12 -05:00
Dan Streetman
7084bfc8bc pull-pkg: add pull-ppa-* functionality
Add functionality, and frontend pull-ppa-* scripts, to be able to pull
from PPA archives.
2019-11-25 10:10:06 -05:00
Dan Streetman
e3268a62f4 pull-pkg: create pull-[lp|debian|uca]-* scripts
for backwards compatibility (i.e. to keep pull-lp-source,
pull-debian-source, and pull-uca-source) and for ease of use,
create scripts that default the pull-pkg -p and -D params

re-create pull-pkg script also, to call ubuntutools/pullpkg.py
without any default pull or distro parameters
2019-11-25 10:10:06 -05:00
Dan Streetman
2c998a6fd2 setup.py: convert to py3 2019-09-11 17:18:51 -04:00
Stefano Rivera
301569e809 Pull out Python 2 support hacks 2019-09-04 19:24:44 -03:00
Stefano Rivera
bb765237db Port Python scripts to Python 3, remove python 2 modules. (Closes: #938740, LP: #1099537) 2019-09-04 19:24:44 -03:00
Stefano Rivera
3d345113cc Use python3-debian's Version class in merge-changelog, to support Python 3. 2019-09-04 19:24:44 -03:00
Stefano Rivera
66afe7c6fc Port import-bug-from-debian to Python 3
Use python3-debianbts for BTS wrangling, rather than SOAPPy, which
wasn't ported to Python 3.
2019-09-04 19:24:44 -03:00
Stefano Rivera
5f3247cfc0 Port update-maintainer to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
96896fd2c8 Port ubuntu-upload-permission to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
16b9311995 Port ubuntu-iso 2019-09-04 19:24:44 -03:00
Stefano Rivera
6c375255c4 Port ubuntu-build to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
2c8c4d7268 Port syncpackage to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
3f5e56c75e Port submittodebian to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
76609fde49 Port sponsor-patch to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
673234e449 Port seeded-in-ubuntu to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
31d1ae269a Port reverse-depends to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
b311cebaed More requestsync porting and cleanup 2019-09-04 19:24:44 -03:00
Stefano Rivera
7c0efe2914 Port requestbackport to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
0de4509da6 Port pull-uca-source to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
4239d49582 Port pull-lp-source to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
6a60ee963d Port pull-debian-debdiff to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
d1949a72aa Port pbuilder-dist to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
118f95b62e Port hugadaylist to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
3052bfcc16 Port grep-merges to python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
05ce00a49a Port enforced-editing-wrapper to python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
071ff40f20 Port check-mir to Python 3 2019-09-04 19:24:44 -03:00
Stefano Rivera
2a0bffc2a0 Port bitesize to python3 2019-09-04 19:24:44 -03:00
Stefano Rivera
7f9949fc4c Port backportpackage to Python 3. 2019-09-04 19:24:44 -03:00
Stefano Rivera
9ef7545150 Move non-Python scripts to the python3 section 2019-09-04 19:24:44 -03:00
Stefano Rivera
7c5f2431db Drop 404main, it's been totally broken for years. 2019-09-04 19:24:44 -03:00
Stefano Rivera
7fd1a6a766 Install pull-debian-source as python 3. It was ported, and doesn't work under python 2 any more. (LP: #1841127) 2019-09-03 21:16:43 -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
Iain Lane
a6043a6ba8 Remove the `harvest' command, and all other integration with the Harvest service, since it has been shut down. 2017-04-03 13:58:02 +02:00
Dan Streetman
03fda64eae pull-uca-source: update to allow using binary pkg names, -pockets, and specific versions 2017-02-03 10:21:37 -05:00
Benjamin Drung
a753fedf7b Install bash completions into /usr/share/bash-completion/completions 2015-10-30 22:56:49 +01:00
Dimitri John Ledkov
9d09768bd1 Fix python3 setup.py clean failing to read unicode from
debian/changelog.
2015-01-19 14:08:51 +00:00
Dimitri John Ledkov
e162e7d580 Port ubuntutools library 2014-12-18 23:51:59 +00:00
Dmitrijs Ledkovs
5575d70531 dgetlp: drop it, and hence remove python-gnupginterface dependency. 2012-11-09 11:02:01 +00:00
Stefano Rivera
fdbb9b345c Provide transitional reverse-build-depends wrapper to help users
discover reverse-depends. (LP: #910420)
2012-02-15 16:42:58 +02:00
Stefano Rivera
682f5859ae Re-add dgetlp. Still needed for downloading source packages from +queue.
(LP: #919805)
2012-01-22 21:26:39 +02:00