File: rules

package info (click to toggle)
python-authlib 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,724 kB
  • sloc: python: 22,292; makefile: 49; javascript: 37; sh: 10
file content (24 lines) | stat: -rwxr-xr-x 570 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
24
#!/usr/bin/make -f

export PYBUILD_NAME=authlib
export PYBUILD_TEST_PYTEST=1

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

override_dh_auto_test:
	dh_auto_test -- --test-pytest --test-args tests/core
	DJANGO_SETTINGS_MODULE=tests.django.settings \
		dh_auto_test -- --test-pytest --test-args tests/django
	dh_auto_test -- --test-pytest --test-args tests/flask

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
	$(MAKE) -C docs html

execute_after_dh_auto_clean:
	$(MAKE) -C docs clean
endif

override_dh_compress:
	dh_compress -X.html -X.ico