File: rules

package info (click to toggle)
parsedatetime 2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 528 kB
  • ctags: 455
  • sloc: python: 5,159; makefile: 73
file content (14 lines) | stat: -rwxr-xr-x 361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

export PYBUILD_NAME = parsedatetime

ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
export PYBUILD_DISABLE = test
else
export PYBUILD_BEFORE_TEST = cp -r {dir}/tests {build_dir}
export PYBUILD_TEST_ARGS = tests/Test*.py
export PYBUILD_AFTER_TEST = rm -rf {build_dir}/tests
endif

%:
	dh $@ --with python2,python3 --buildsystem pybuild