File: rules

package info (click to toggle)
mycli 1.31.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 920 kB
  • sloc: python: 7,269; makefile: 10
file content (20 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download | duplicates (3)
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=mycli

export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }' | rev | cut -d- -f2- | rev)

%:
	dh ${@} --buildsystem=pybuild

execute_after_dh_auto_clean:
	# help pybuild
	rm -rf *.egg-info

execute_after_dh_auto_install:
	# removing useless files
	rm -f debian/mycli/usr/lib/python3/dist-packages/mycli/AUTHORS
	rm -f debian/mycli/usr/lib/python3/dist-packages/mycli/SPONSORS

override_dh_auto_test:
	# disabled, doesn't work yet