File: rules

package info (click to toggle)
python-colorama 0.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 420 kB
  • sloc: python: 1,428; sh: 49; makefile: 46
file content (17 lines) | stat: -rwxr-xr-x 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export PYBUILD_NAME=colorama

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	# The shebang used in the examples is based on classical Python2, fixing
	# by replacing with a usable one.
	for file in `find demos -type f -name "*.py"`; do \
	    sed -i 's/^#!\/usr\/bin\/python/#!\/usr\/bin\/python3/g' $$file ;\
	done
	dh_auto_build

override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} -m pytest -v colorama/tests"