File: rules

package info (click to toggle)
codespell 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,132 kB
  • sloc: python: 1,612; makefile: 67; ansic: 11
file content (26 lines) | stat: -rwxr-xr-x 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_build:
	V=`dpkg-parsechangelog -SVersion|cut -d- -f1`; \
	echo -n "__version__=\"" > codespell_lib/_version.py; \
	echo -n $$V >> codespell_lib/_version.py; \
	echo -n "\"" >> codespell_lib/_version.py
	make codespell.1
	dh_auto_build

override_dh_auto_test:
	make check-dictionary
	virtualenv -p python3 venv
	( \
		. venv/bin/activate; \
		python setup.py install; \
		pytest-3 codespell_lib; \
	)
	rm -rf venv

override_dh_clean:
	rm -rf codespell.egg-info .cache .coverage dist venv
	dh_clean