File: rules

package info (click to toggle)
pdf2docx 0.5.10-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 16,876 kB
  • sloc: python: 6,843; makefile: 82; sh: 9
file content (21 lines) | stat: -rwxr-xr-x 469 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

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

override_dh_auto_build:
	dh_auto_build
	cd docs && PYTHONPATH=.. make html

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	set -ex; for py in `py3versions --supported 2>/dev/null`; do \
		cd test ; \
		pwd ; \
		PYTHONPATH=.. $${py} -m pytest -v test.py::TestConversion ; \
		make clean ; \
		make docx2pdf ; \
		cd - ; \
	done
endif