File: rules

package info (click to toggle)
python-thinc 9.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,896 kB
  • sloc: python: 17,122; javascript: 1,559; ansic: 342; makefile: 15; sh: 13
file content (20 lines) | stat: -rwxr-xr-x 520 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
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME = thinc

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	-find debian -type d -path '*.hypothesis*' -exec rm -rf '{}' +

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	-PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="cd {build_dir} && {interpreter} -Wd -m pytest thinc -v -rs" \
		dh_auto_test
endif

execute_after_dh_auto_clean:
	-find . -type f -name cythonize.dat -delete