File: rules

package info (click to toggle)
python-goodwe 0.4.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: python: 6,081; makefile: 9; sh: 5
file content (14 lines) | stat: -rwxr-xr-x 332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

export PYBUILD_NAME=goodwe

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	head -n 1 debian/changelog | python3 -c "import sys; import re; print(re.search(r'\((.*)-[^)]+\)', sys.stdin.read()).group(1))" > VERSION
	dh_auto_build

override_dh_auto_clean:
	dh_auto_clean
	rm -rf goodwe.egg-info/ VERSION