File: rules

package info (click to toggle)
python-humanize 4.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 760 kB
  • sloc: python: 1,943; sh: 14; makefile: 10
file content (16 lines) | stat: -rwxr-xr-x 367 bytes parent folder | download
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 $@ --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__