File: rules

package info (click to toggle)
docker-compose 1.25.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,632 kB
  • sloc: python: 24,913; sh: 1,023; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 684 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
#!/usr/bin/make -f

export PYBUILD_NAME=docker-compose
%:
	dh $@ --with python3 --buildsystem=pybuild

DESTDIR = $(CURDIR)/debian/docker-compose
override_dh_auto_install:
	dh_auto_install --buildsystem=pybuild
	mkdir -p $(DESTDIR)/usr/share/zsh/vendor-completions $(DESTDIR)/usr/share/bash-completion/completions
	install -m644 contrib/completion/zsh/_docker-compose $(DESTDIR)/usr/share/zsh/vendor-completions
	install -m644 contrib/completion/bash/docker-compose $(DESTDIR)/usr/share/bash-completion/completions

override_dh_auto_test:
	# tests disabled because they require networking

test:
	which pytest || (echo "pytest not found. install python-pytest" ; exit 1)
	pytest tests