File: rules

package info (click to toggle)
libcloud 3.8.0%2Brepack-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 27,636 kB
  • sloc: python: 158,372; xml: 19,482; sh: 27; makefile: 11
file content (20 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download | duplicates (2)
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 PYBUILD_NAME=libcloud

export PYBUILD_BEFORE_TEST=./debian/setup-test-env.sh {build_dir}
export PYBUILD_AFTER_TEST=rm -f {build_dir}/libcloud/test/secrets.py

# Disable tests requiring network access. The upstream test-suite honors the
# NO_NETWORK variable.
export NO_NETWORK=

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	rm -rf $(CURDIR)/debian/python3-libcloud/usr/lib/python3.*/dist-packages/libcloud/test

override_dh_auto_test:
	dh_auto_test -O--buildsystem=pybuild -- --test-pytest --test-args "-m 'not serial'"
	dh_auto_test -O--buildsystem=pybuild -- --test-pytest --test-args "-m 'serial'"