1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#!/usr/bin/make -f
DEB_RELEASE_NAME=$(shell lsb_release --codename | awk '{print $$2}')
UPSTREAM_GIT := https://github.com/racker/falcon.git
include /usr/share/openstack-pkg-tools/pkgos.make
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
%:
dh $@ --buildsystem=python_distutils --with python2,python3
override_dh_auto_install:
pkgos-dh_auto_install
rm -rf $(CURDIR)/debian/python*-falcon/usr/lib/python*/dist-packages/tests
override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
nosetests
nosetests3
endif
override_dh_python2:
dh_python2 --shebang=/usr/bin/python
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
override_dh_installchangelogs:
dh_installchangelogs -Xdoc/changes
|