File: rules

package info (click to toggle)
python-pytest-xprocess 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 272 kB
  • sloc: python: 756; makefile: 25; sh: 10
file content (23 lines) | stat: -rwxr-xr-x 794 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
#!/usr/bin/make -f

PY3VERS = $(shell py3versions -r -v)
#PY3VERS = $(shell py3versions -d -v) # 3.13 only

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

execute_after_dh_auto_install:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	set -e ; for pyvers in $(PY3VERS); do \
		PYTHONPATH=$(CURDIR)/debian/python3-pytest-xprocess/usr/lib/python3/dist-packages python$$pyvers -m pytest -vv -k "not test_interruption_cleanup and not test_interruption_does_not_cleanup and not test_functional_work_flow"; \
	done
endif

override_dh_auto_test:
	echo "Do nothing..."

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html docs/source debian/python-pytest-xprocess-doc/usr/share/doc/python-pytest-xprocess-doc/html
	dh_sphinxdoc
endif