File: rules

package info (click to toggle)
aiodogstatsd 0.16.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 296 kB
  • sloc: python: 1,080; makefile: 70; sh: 19
file content (33 lines) | stat: -rwxr-xr-x 1,057 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
#! /usr/bin/make -f

export PYBUILD_NAME=aiodogstatsd

# need packaging async_asgi_testclient and pytest-mockservers
export PYBUILD_TEST_ARGS=--ignore=tests/test_contrib_starlette.py \
	--ignore=tests/test_client.py \
	--ignore=tests/test_contrib_aiohttp.py

export PYBUILD_TEST_PYTEST=1

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

override_dh_auto_build:
	dh_auto_build
ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
	PYTHONPATH=. http_proxy='127.0.0.1:9' mkdocs build --clean --site-dir build/html
endif
	find build/html -type f -name sitemap.xml.gz -delete

override_dh_compress:
	dh_compress -X.ttf -X.svg -X.eot -X.woff


override_dh_installdocs:
	dh_installdocs
	for html in `find debian -name "*.html"` ; do \
	    sed -i \
		-e 's#https://cdnjs.cloudflare.com/ajax/libs/highlight.js/[^/]*/styles/github\.min\.css#file:///usr/share/javascript/highlight.js/styles/github.css#' \
		-e 's#https://cdnjs.cloudflare.com/ajax/libs/highlight.js/[^/]*/highlight\.min\.js#file:///usr/share/javascript/highlight.js/highlight.min.js#' \
		$${html} ; \
	done