File: rules

package info (click to toggle)
django-invitations 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 456 kB
  • sloc: python: 1,484; makefile: 27; sh: 6
file content (23 lines) | stat: -rwxr-xr-x 630 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export PYBUILD_NAME=django-invitations
export PYBUILD_TEST_PYTEST=1

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean
	rm -rf django_invitations.egg-info/

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	$(eval BUILD_DIR=$(shell pybuild --print '{build_dir}'))
	for dir in $(BUILD_DIR); do \
		cp -r $(CURDIR)/test_* $$dir; \
		cd $$dir; \
		python3 -mpytest --ignore=$(CURDIR)/tests/allauth/  --ds=test_settings $(CURDIR)/tests; \
		python3 -mpytest --ignore=$(CURDIR)/tests/basic/  --ds=test_allauth_settings $(CURDIR)/tests; \
		rm $$dir/test_* ; \
	done
endif