File: rules

package info (click to toggle)
mercantile 1.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 280 kB
  • sloc: python: 1,355; makefile: 206
file content (26 lines) | stat: -rwxr-xr-x 527 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

export PYBUILD_NAME=mercantile
export PYBUILD_TEST_PYTEST=1

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

override_dh_auto_clean:
	dh_auto_clean

	make -C docs clean
	$(RM) -R .pytest_cache
	$(RM) -R *.egg-info

override_dh_auto_build:
	dh_auto_build

	PYTHONPATH=$(CURDIR):$(CURDIR)/docs make -C docs html

override_dh_auto_install:
	dh_auto_install

	# Move usr/bin/mercantile to mercantile package
	mkdir -p debian/mercantile/usr
	mv debian/python3-mercantile/usr/bin debian/mercantile/usr