File: rules

package info (click to toggle)
python-opem 1.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,076 kB
  • sloc: python: 7,777; sh: 27; makefile: 10
file content (18 lines) | stat: -rwxr-xr-x 465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export PYBUILD_NAME=opem
# Skip test that is known to fail due to check for package update.
export PYTEST_ADDOPTS = --asyncio-mode=auto -k 'not test_Functions'

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_install:
	#Remove __pycache__
	find . -type d -name '__pycache__' -exec rm -r {} +

override_dh_auto_install:
	dh_auto_install
	# Exclude the 'opem' binary
	rm debian/python3-opem/usr/bin/opem
	rm -d debian/python3-opem/usr/bin