rules 712 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/make -f

export PYBUILD_NAME=django-allauth

%:
	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild

#override_dh_install:
#	dh_install

11 12 13
override_dh_installchangelogs:
	dh_installchangelogs ChangeLog.rst

14
override_dh_auto_build:
15
	cd allauth && django-admin compilemessages
16 17 18 19 20 21 22 23 24 25 26 27 28
	PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs docs/.build/html
	dh_auto_build

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -e; \
	for python in $(shell pyversions -r) $(shell py3versions -r); do \
		PYTHONPATH="." DJANGO_SETTINGS_MODULE=test_settings $$python $(shell which django-admin) test allauth.tests;\
	done
endif

get-orig-source:
	uscan --verbose --rename