File: rules

package info (click to toggle)
lz4tools 1.3.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 412 kB
  • sloc: ansic: 3,989; python: 376; makefile: 19
file content (30 lines) | stat: -rwxr-xr-x 790 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
24
25
26
27
28
29
30
#!/usr/bin/make -f

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

export PYBUILD_NAME=lz4tools
export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}/;cp -r {dir}/src {build_dir}/
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests; rm -rf {build_dir}/src

export no_proxy=example.com


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

override_dh_auto_clean:
	dh_auto_clean
	rm -f tests/test_lz4.py

override_dh_auto_install:
	pkgos-dh_auto_install --no-py2 --in-tmp
	
	cp tests/test.py tests/test_lz4.py

	set -e ; set -x ; for i in `py3versions -vr 2>/dev/null` ; do \
		PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages python$$i -m pytest tests -v ; \
	done

override_dh_auto_test:
	echo "Do not do it here..."