Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 UPSTREAM_GIT := https://github.com/geopandas/contextily
4 include /usr/share/openstack-pkg-tools/pkgos.make
5
6 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)
7
8 PYBUILD_NAME=contextily
9 export PYBUILD_VERBOSE=1
10
11 export MPLCONFIGDIR=/tmp
12
13 %:
14 dh $@ --buildsystem=pybuild --with python3,sphinxdoc
15
16 override_dh_auto_clean:
17 rm -rf build .stestr *.egg-info
18 rm -f docs/README.rst \
19 docs/add_basemap_deepdive.ipynb \
20 docs/friends_cenpy_osmnx.ipynb \
21 docs/friends_gee.ipynb \
22 docs/intro_guide.ipynb \
23 docs/places_guide.ipynb \
24 docs/providers_deepdive.ipynb \
25 docs/tiles.png \
26 docs/warping_guide.ipynb \
27 docs/working_with_local_files.ipynb
28 find . -iname '*.pyc' -delete
29 for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
30 dh_auto_clean
31
32 override_dh_sphinxdoc:
33 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
34 PYTHONPATH=. python3 -m sphinx -b html docs debian/python-contextily-doc/usr/share/doc/python-contextily-doc/html
35 find $(CURDIR)/debian/python-contextily-doc/usr/share/doc/python-contextily-doc/html/ -iname '*.pyc' -delete
36 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
37 dh_sphinxdoc
38 endif
39
40 override_dh_auto_test:
41 echo "Disable all tests, as they are doing outbound connections."