File: rules

package info (click to toggle)
python-contextily 1.5.2%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: python: 1,092; makefile: 41
file content (41 lines) | stat: -rwxr-xr-x 1,502 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
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

UPSTREAM_GIT := https://github.com/geopandas/contextily
include /usr/share/openstack-pkg-tools/pkgos.make

export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell dpkg-parsechangelog -SVersion | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~git.*//' -e 's/~bpo.*//' -e 's/~/.0/' -e 's/+dfsg1//' -e 's/+ds1//' | head -n 1)

PYBUILD_NAME=contextily
export PYBUILD_VERBOSE=1

export MPLCONFIGDIR=/tmp

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

override_dh_auto_clean:
	rm -rf build .stestr *.egg-info
	rm -f	docs/README.rst \
		docs/add_basemap_deepdive.ipynb \
		docs/friends_cenpy_osmnx.ipynb \
		docs/friends_gee.ipynb \
		docs/intro_guide.ipynb \
		docs/places_guide.ipynb \
		docs/providers_deepdive.ipynb \
		docs/tiles.png \
		docs/warping_guide.ipynb \
		docs/working_with_local_files.ipynb
	find . -iname '*.pyc' -delete
	for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
	dh_auto_clean

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html docs debian/python-contextily-doc/usr/share/doc/python-contextily-doc/html
	find $(CURDIR)/debian/python-contextily-doc/usr/share/doc/python-contextily-doc/html/ -iname '*.pyc' -delete
	for i in $$(find $(CURDIR)/debian/python-contextily-doc/usr/share/doc/python-contextily-doc/html -type d -iname __pycache__) ; do rm -rf $$i ; done
	dh_sphinxdoc
endif

override_dh_auto_test:
	echo "Disable all tests, as they are doing outbound connections."