File: rules

package info (click to toggle)
python-django-celery-beat 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 996 kB
  • sloc: python: 2,694; makefile: 326; sh: 22
file content (23 lines) | stat: -rwxr-xr-x 703 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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=django-celery-beat
export PYBUILD_TEST_ARGS=-p celery.contrib.pytest -k "not test_heap_always_return_the_first_item and not test_run_task and not test_run_tasks"

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. python3 -m sphinx -b html -d docs/.build/.doctrees -N docs docs/.build/html
	set -e; \
	for loc in django_celery_beat/locale/*; do \
		python3 setup.py compile_catalog --directory django_celery_beat/locale/ --locale $$(basename $$loc) --domain django; \
	done

override_dh_clean:
	rm -rf docs/.build
	rm -rf .cache
	dh_clean