X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=xenial%2Fdebian%2Frules;fp=xenial%2Fdebian%2Frules;h=4630b920250e72c4d1e03cee38b8f2838038863f;hb=6d8667048fb796fba4756f50c7764b71eeb6dcd3;hp=0000000000000000000000000000000000000000;hpb=9b6f75e6e676e87561d6d5d988691a444e4d817b;p=openstack-build%2Fdjango_openstack_auth-build.git diff --git a/xenial/debian/rules b/xenial/debian/rules new file mode 100755 index 0000000..4630b92 --- /dev/null +++ b/xenial/debian/rules @@ -0,0 +1,44 @@ +#!/usr/bin/make -f + +PYTHONS:=$(shell pyversions -vr) +PYTHON3S:=$(shell py3versions -vr) + +UPSTREAM_GIT = git://github.com/openstack/django_openstack_auth.git +include /usr/share/openstack-pkg-tools/pkgos.make + +export OSLO_PACKAGE_VERSION=$(VERSION) + +%: + dh $@ --with python2,python3 + +override_dh_auto_install: + set -e ; for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python-django-openstack-auth; \ + done + set -e ; for pyvers in $(PYTHON3S); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python3-django-openstack-auth; \ + done + +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) +override_dh_auto_test: + set -e ; for pyversion in 2.7 ; do \ + NOSE_WITH_OPENSTACK=1 \ + NOSE_OPENSTACK_COLOR=1 \ + NOSE_OPENSTACK_RED=0.05 \ + NOSE_OPENSTACK_YELLOW=0.025 \ + NOSE_OPENSTACK_SHOW_ELAPSED=1 \ + PYTHONPATH=. python$$pyversion openstack_auth/tests/run_tests.py ; \ + done +endif + +# Commands not to run +override_dh_installcatalogs: +override_dh_installemacsen override_dh_installifupdown: +override_dh_installinfo override_dh_installmenu override_dh_installmime: +override_dh_installmodules override_dh_installlogcheck: +override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm: +override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal: +override_dh_installcron override_dh_installdebconf: +override_dh_installlogrotate override_dh_installgsettings: