File: rules

package info (click to toggle)
python-django-celery-beat 2.8.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,176 kB
  • sloc: python: 3,437; makefile: 321; sh: 22
file content (26 lines) | stat: -rwxr-xr-x 834 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
25
26
#!/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 sphinxdoc --buildsystem=pybuild

execute_after_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_auto_test:
	# HumanReadableTestCase::test_long_name relies on locale-dependent
	# formatting.
	localehelper LC_ALL=en_US.UTF-8 dh_auto_test

execute_before_dh_clean:
	rm -rf docs/.build
	rm -rf .cache