File: rules

package info (click to toggle)
python-djantic 0.7.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: python: 2,599; sh: 19; makefile: 14
file content (25 lines) | stat: -rwxr-xr-x 740 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
#!/usr/bin/make -f

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

# This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

export PYBUILD_NAME=djantic
export PYBUILD_TEST_ARGS=-k '    not test_multiple_level_relations \
                             and not test_alias \
                             and not test_annotations \
                             and not test_sub_model'
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.pytest_cache/

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

execute_after_dh_auto_build:
	LC_ALL=C.UTF-8 LANG=C.UTF-8 mkdocs build && rm -f site/sitemap.xml.gz && mv site html

execute_after_dh_clean:
	rm -rf html

override_dh_compress:
	dh_compress -Xsitemap.xml