Codebase list gertty / c310336
Switch to Python 3. Thomas Goirand 4 years ago
3 changed file(s) with 49 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
11
22 * Team upload.
33 * Ran wrap-and-sort -bast.
4 * Switch to Python 3.
45
56 -- Thomas Goirand <zigo@debian.org> Wed, 10 Jul 2019 14:15:29 +0200
67
55 debhelper (>= 11~),
66 dh-python,
77 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,
2020 Standards-Version: 4.2.1
2121 Vcs-Browser: https://salsa.debian.org/debian/gertty
2222 Vcs-Git: https://salsa.debian.org/debian/gertty.git
2828 sensible-utils,
2929 ${misc:Pre-Depends},
3030 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,
4343 ${misc:Depends},
44 ${python:Depends},
44 ${python3:Depends},
4545 Recommends:
46 ${python:Recommends},
46 ${python3:Recommends},
4747 Description: Console-based interface to Gerrit
4848 Gertty is a console-based interface to the Gerrit Code Review system.
4949 As compared to the web interface, the main advantages are:
00 #!/usr/bin/make -f
11
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
25 %:
3 dh $@ --buildsystem=python_distutils --with python2
6 dh $@ --buildsystem=python_distutils --with python3
47
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
619 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