File: rules

package info (click to toggle)
python-keyring 25.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 560 kB
  • sloc: python: 1,929; sh: 17; makefile: 17
file content (24 lines) | stat: -rwxr-xr-x 806 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
21
22
23
24
#!/usr/bin/make -f

#DH_VERBOSE=1

export PYBUILD_BEFORE_TEST=cp keyring/backend_complete.* {build_dir}/keyring/
export PYBUILD_TEST_ARGS=tests \
	--ignore tests/backends/test_SecretService.py \
	--ignore tests/backends/test_Windows.py \
	--ignore tests/backends/test_kwallet.py \
	--ignore tests/backends/test_libsecret.py \
	--ignore tests/backends/test_macOS.py \
	--ignore tests/test_multiprocess.py

%:
	dh $@ --buildsystem pybuild

override_dh_installchangelogs:
	dh_installchangelogs -k NEWS.rst

execute_after_dh_auto_install:
	mkdir -p debian/python3-keyring/usr/share/bash-completion/completions
	PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(CURDIR) \
		debian/python3-keyring/usr/bin/keyring --print-completion bash \
		> $(CURDIR)/debian/python3-keyring/usr/share/bash-completion/completions/keyring