| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
UPSTREAM_GIT := https://github.com/django-compressor/django-appconf.git |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --buildsystem=pybuild --with python3,sphinxdoc |
| 8 |
|
| 9 |
override_dh_clean: |
| 10 |
dh_clean |
| 11 |
rm -rf build *.egg-info .pybuild |
| 12 |
find . -type d -name __pycache__ -exec rm -r {} \+ |
| 13 |
|
| 14 |
override_dh_auto_clean: |
| 15 |
echo "Do nothing..." |
| 16 |
|
| 17 |
override_dh_auto_build: |
| 18 |
echo "Do nothing..." |
| 19 |
|
| 20 |
override_dh_auto_test: |
| 21 |
echo "Do nothing..." |
| 22 |
|
| 23 |
override_dh_auto_install: |
| 24 |
pkgos-dh_auto_install --no-py2 --in-tmp |
| 25 |
|
| 26 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 27 |
echo "===> Running tests" |
| 28 |
set -e ; set -x ; for i in $(PYTHON3S) ; do \ |
| 29 |
PYMAJOR=`echo $$i | cut -d'.' -f1` ; \ |
| 30 |
echo "===> Testing with python$$i (python$$PYMAJOR)" ; \ |
| 31 |
PYTHON=python$$i PYTHONPATH=. django-admin test -v2 --settings=tests.test_settings ; \ |
| 32 |
done |
| 33 |
endif |
| 34 |
|
| 35 |
override_dh_sphinxdoc: |
| 36 |
python3 -m sphinx -b html docs debian/python-django-appconf-doc/usr/share/doc/python-django-appconf-doc/html |
| 37 |
dh_sphinxdoc -O--buildsystem=pybuild |