File: rules

package info (click to toggle)
django-allauth 65.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,656 kB
  • sloc: python: 34,408; javascript: 3,070; xml: 849; makefile: 235; sh: 8
file content (23 lines) | stat: -rwxr-xr-x 695 bytes parent folder | download
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-allauth

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

override_dh_install:
	dh_install
	rm -f debian/python-django-allauth-doc/usr/share/doc/python-django-allauth/examples/regular-django/db/.gitignore

override_dh_auto_build:
	cd allauth && django-admin compilemessages
	PYTHONPATH=. python3 -m sphinx -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 py3versions -r); do \
		PYTHONPATH="." DJANGO_SETTINGS_MODULE=tests.regular.settings $$python $(shell which django-admin) test allauth.tests;\
	done
endif