Switch to Python 3.
Thomas Goirand
4 years ago
1 | 1 |
|
2 | 2 |
* Team upload.
|
3 | 3 |
* Ran wrap-and-sort -bast.
|
|
4 |
* Switch to Python 3.
|
4 | 5 |
|
5 | 6 |
-- Thomas Goirand <zigo@debian.org> Wed, 10 Jul 2019 14:15:29 +0200
|
6 | 7 |
|
5 | 5 |
debhelper (>= 11~),
|
6 | 6 |
dh-python,
|
7 | 7 |
python-alembic,
|
8 | |
python-all (>= 2.6.6-3~),
|
9 | |
python-dateutil,
|
10 | |
python-git,
|
11 | |
python-pbr,
|
12 | |
python-ply,
|
13 | |
python-requests,
|
14 | |
python-setuptools,
|
15 | |
python-six,
|
16 | |
python-sqlalchemy (>= 1.0.4),
|
17 | |
python-urwid,
|
18 | |
python-voluptuous,
|
19 | |
python-yaml,
|
|
8 |
python3-all,
|
|
9 |
python3-dateutil,
|
|
10 |
python3-git,
|
|
11 |
python3-pbr,
|
|
12 |
python3-ply,
|
|
13 |
python3-requests,
|
|
14 |
python3-setuptools,
|
|
15 |
python3-six,
|
|
16 |
python3-sqlalchemy,
|
|
17 |
python3-urwid,
|
|
18 |
python3-voluptuous,
|
|
19 |
python3-yaml,
|
20 | 20 |
Standards-Version: 4.2.1
|
21 | 21 |
Vcs-Browser: https://salsa.debian.org/debian/gertty
|
22 | 22 |
Vcs-Git: https://salsa.debian.org/debian/gertty.git
|
|
28 | 28 |
sensible-utils,
|
29 | 29 |
${misc:Pre-Depends},
|
30 | 30 |
Depends:
|
31 | |
python-alembic,
|
32 | |
python-dateutil,
|
33 | |
python-git,
|
34 | |
python-pbr,
|
35 | |
python-ply,
|
36 | |
python-requests,
|
37 | |
python-setuptools,
|
38 | |
python-six,
|
39 | |
python-sqlalchemy (>= 1.0.4),
|
40 | |
python-urwid,
|
41 | |
python-voluptuous,
|
42 | |
python-yaml,
|
|
31 |
python3-alembic,
|
|
32 |
python3-dateutil,
|
|
33 |
python3-git,
|
|
34 |
python3-pbr,
|
|
35 |
python3-ply,
|
|
36 |
python3-requests,
|
|
37 |
python3-setuptools,
|
|
38 |
python3-six,
|
|
39 |
python3-sqlalchemy,
|
|
40 |
python3-urwid,
|
|
41 |
python3-voluptuous,
|
|
42 |
python3-yaml,
|
43 | 43 |
${misc:Depends},
|
44 | |
${python:Depends},
|
|
44 |
${python3:Depends},
|
45 | 45 |
Recommends:
|
46 | |
${python:Recommends},
|
|
46 |
${python3:Recommends},
|
47 | 47 |
Description: Console-based interface to Gerrit
|
48 | 48 |
Gertty is a console-based interface to the Gerrit Code Review system.
|
49 | 49 |
As compared to the web interface, the main advantages are:
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
|
2 |
PYTHON3S:=$(shell py3versions -vrs)
|
|
3 |
export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog -SVersion | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/.0/' -e 's/+dfsg1//' | head -n 1)
|
|
4 |
|
2 | 5 |
%:
|
3 | |
dh $@ --buildsystem=python_distutils --with python2
|
|
6 |
dh $@ --buildsystem=python_distutils --with python3
|
4 | 7 |
|
5 | |
# Remove alembic note
|
|
8 |
override_dh_auto_clean:
|
|
9 |
rm -rf build .stestr
|
|
10 |
find . -iname '*.pyc' -delete
|
|
11 |
for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
|
|
12 |
|
|
13 |
override_dh_auto_build:
|
|
14 |
echo "Do nothing..."
|
|
15 |
|
|
16 |
override_dh_auto_test:
|
|
17 |
echo "Do nothing..."
|
|
18 |
|
6 | 19 |
override_dh_auto_install:
|
7 | |
dh_auto_install
|
8 | |
rm -f $(CURDIR)/debian/gertty/usr/lib/python2.7/dist-packages/gertty/alembic/README
|
|
20 |
set -x ; set -e ; for pyvers in $(PYTHON3S) ; do \
|
|
21 |
python$$pyvers setup.py install --install-layout=deb --root $(CURDIR)/debian/gertty ; \
|
|
22 |
done
|
|
23 |
rm -f $(CURDIR)/debian/gertty/usr/lib/python3*/dist-packages/gertty/alembic/README
|
|
24 |
|
|
25 |
override_dh_python3:
|
|
26 |
dh_python3 --shebang=/usr/bin/python3
|