File: rules

package info (click to toggle)
python-pytimeparse 1.1.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104 kB
  • sloc: python: 485; makefile: 14
file content (20 lines) | stat: -rwxr-xr-x 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

UPSTREAM_GIT := https://github.com/wroberts/pytimeparse.git
-include /usr/share/openstack-pkg-tools/pkgos.make

export PYBUILD_NAME=pytimeparse

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

override_dh_clean:
	dh_clean
	rm -rf build

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	set -e ; set -x ; for pyvers in $(PYTHON3S); do \
		python$$pyvers -m pytest -v pytimeparse/tests/testtimeparse.py ; \
	done
endif