File: rules

package info (click to toggle)
flask-limiter 3.12-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,264 kB
  • sloc: python: 6,432; makefile: 165; sh: 67
file content (23 lines) | stat: -rwxr-xr-x 625 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
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

SPHINXOPTS := -E -N

export PYBUILD_NAME=flask-limiter

# Only run tests that don't require docker / docker-compose
export PYBUILD_TEST_ARGS=--override-ini=addopts=--verbose tests/test_views.py

%:
	dh $@ --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONHASHSEED=0 PYTHONPATH=$(CURDIR) python3 -m sphinx -b html $(SPHINXOPTS) doc/source $(CURDIR)/debian/python-flask-limiter-doc/usr/share/doc/python-flask-limiter-doc/html
	dh_sphinxdoc
endif

override_dh_installexamples:
	dh_installexamples -A -X__pycache__