Use pybuild for building package
Ondřej Nový
4 years ago
5 | 5 |
* d/copyright: Bump my copyright year.
|
6 | 6 |
* Bump Standards-Version to 4.4.0 (no changes needed)
|
7 | 7 |
* Drop Python 2 support
|
|
8 |
* Use pybuild for building package
|
8 | 9 |
|
9 | 10 |
[ Thomas Goirand ]
|
10 | 11 |
* Remove Julien, Mehdi and Goneri from uploaders (Closes: #928568).
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
2 | 2 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
3 | |
|
4 | |
PYTHON3S:=$(shell py3versions -vr)
|
|
3 |
export PYBUILD_NAME=py
|
5 | 4 |
|
6 | 5 |
UPSTREAM_GIT = https://github.com/openstack/pyeclib.git
|
7 | 6 |
-include /usr/share/openstack-pkg-tools/pkgos.make
|
8 | 7 |
|
9 | 8 |
%:
|
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
|