Codebase list python-pyeclib / f60b5fa
Use pybuild for building package Ondřej Nový 4 years ago
2 changed file(s) with 3 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
55 * d/copyright: Bump my copyright year.
66 * Bump Standards-Version to 4.4.0 (no changes needed)
77 * Drop Python 2 support
8 * Use pybuild for building package
89
910 [ Thomas Goirand ]
1011 * Remove Julien, Mehdi and Goneri from uploaders (Closes: #928568).
00 #!/usr/bin/make -f
11
22 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
3
4 PYTHON3S:=$(shell py3versions -vr)
3 export PYBUILD_NAME=py
54
65 UPSTREAM_GIT = https://github.com/openstack/pyeclib.git
76 -include /usr/share/openstack-pkg-tools/pkgos.make
87
98 %:
10 dh $@ --buildsystem=python_distutils --with python3
11
12 override_dh_auto_install:
13 set -e ; for pyvers in $(PYTHON3S); do \
14 python$$pyvers setup.py install --install-layout=deb \
15 --root $(CURDIR)/debian/python3-pyeclib; \
16 done
17
18 override_dh_auto_clean:
19 find . -iname '*.pyc' -delete
20 rm -rf build pyeclib_c*.so
21
22 override_dh_auto_test:
23 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
24 set -e ; for pyvers in $(PYTHON3S) ; do \
25 python$$pyvers setup.py test ; \
26 done
27 endif
9 dh $@ --with python3 --buildsystem=pybuild