File: rules

package info (click to toggle)
osmnx 2.0.3%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 776 kB
  • sloc: python: 4,738; sh: 40; makefile: 33
file content (32 lines) | stat: -rwxr-xr-x 1,096 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
29
30
31
32
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=osmnx

default:
	@uscan --no-conf --dehs --report || true

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
	PYTHONPATH=$(CURDIR) PYTHONDONTWRITEBYTECODE=1 \
		python3-coverage run --source osmnx -m pytest --verbose debian/tests/test_osmnx_offline.py

DEB_SPHINXDOC_SRCDIR=$(CURDIR)/docs/source
DEB_SPHINXDOC_BUILDDIR=$(CURDIR)/_BUILD/doc
DEB_SPHINXDOC_PKGDOCDIR=/usr/share/doc/python-$(PYBUILD_NAME)-doc
DEB_SPHINXDOC_DOCDIR=$(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/$(DEB_SPHINXDOC_PKGDOCDIR)
override_dh_sphinxdoc:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	python3 -m sphinx -M latexpdf $(DEB_SPHINXDOC_SRCDIR) $(DEB_SPHINXDOC_BUILDDIR)
	python3 -m sphinx -M html     $(DEB_SPHINXDOC_SRCDIR) $(DEB_SPHINXDOC_BUILDDIR)
	cp -prd -t $(DEB_SPHINXDOC_DOCDIR) $(DEB_SPHINXDOC_BUILDDIR)/latex/osmnx.pdf $(DEB_SPHINXDOC_BUILDDIR)/html
	dh_sphinxdoc $(DEB_SPHINXDOC_PKGDOCDIR)/html
endif

override_dh_installchangelogs:
	dh_installchangelogs --keep CHANGELOG.md

override_dh_compress:
	dh_compress -Xtests -X.pdf