Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=django-invitations
4 export PYBUILD_TEST_PYTEST=1
5
6 %:
7 dh $@ --buildsystem=pybuild
8
9 override_dh_auto_clean:
10 dh_auto_clean
11 rm -rf django_invitations.egg-info/
12
13 override_dh_auto_test:
14 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
15 $(eval BUILD_DIR=$(shell pybuild --print '{build_dir}'))
16 for dir in $(BUILD_DIR); do \
17 cp -r $(CURDIR)/test_* $$dir; \
18 cd $$dir; \
19 python3 -mpytest --ignore=$(CURDIR)/tests/allauth/ --ds=test_settings $(CURDIR)/tests; \
20 python3 -mpytest --ignore=$(CURDIR)/tests/basic/ --ds=test_allauth_settings $(CURDIR)/tests; \
21 rm $$dir/test_* ; \
22 done
23 endif