File: rules

package info (click to toggle)
python-humanize 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 540 kB
  • sloc: python: 1,290; makefile: 10; sh: 8
file content (16 lines) | stat: -rwxr-xr-x 382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export PYBUILD_NAME=humanize
export VERSION=$(shell dpkg-parsechangelog|grep ^Version|awk '{print $$2}'|cut -d- -f1)

%:
	echo "version = '$(VERSION)'" > _humanize_version.py
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
# Todo fix that

override_dh_auto_clean:
	${RM} -rvf ./*.egg-info
	${RM} -r _humanize_version.py
	${RM} -r __pycache__