File: rules

package info (click to toggle)
cookiecutter 1.7.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,460 kB
  • sloc: python: 4,501; makefile: 245; sh: 6
file content (28 lines) | stat: -rwxr-xr-x 860 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
27
28
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

export PYBUILD_NAME=cookiecutter
export PYBUILD_TEST_PYTEST=1
export LC_ALL=C.UTF-8
export DISABLE_NETWORK_TESTS=1

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

override_dh_installdocs:
	dh_installdocs
	PYTHONPATH=. python3 -m sphinx -N -q -E -b html docs/ \
		debian/python-cookiecutter-doc/usr/share/doc/python-cookiecutter-doc/html/

override_dh_auto_clean:
	dh_auto_clean
	find . \( -name '*.py[co]' -or -name '\._*' -or -name '\.DS_Store' \) -delete

override_dh_install:
	dh_install
	# Move cookiecutter executable in its dedicated package
	mkdir -p debian/cookiecutter/usr
	mv debian/python3-cookiecutter/usr/bin debian/cookiecutter/usr/.
	rm -rf debian/python3-cookiecutter/usr/bin
	# Remove coverage files
	rm debian/python*-cookiecutter/usr/lib/python*/dist-packages/.coverage