| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
include /usr/share/dpkg/pkg-info.mk |
| 7 |
|
| 8 |
SPHINXOPTS := -E -N |
| 9 |
|
| 10 |
export PYBUILD_NAME=graphql-core |
| 11 |
export PYBUILD_TEST_ARGS=--cov-report=term-missing --cov=graphql --cov=tests |
| 12 |
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/lib/python3*/dist-packages/htmlcov \ |
| 13 |
{destdir}/usr/lib/python3*/dist-packages/.coverage \ |
| 14 |
{destdir}/usr/lib/python3*/dist-packages/coverage.xml |
| 15 |
|
| 16 |
%: |
| 17 |
dh $@ --buildsystem=pybuild |
| 18 |
|
| 19 |
override_dh_clean: |
| 20 |
dh_clean |
| 21 |
rm -rf .mypy_cache |
| 22 |
|
| 23 |
override_dh_sphinxdoc: |
| 24 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 25 |
PYTHONPATH=./src python3 -m sphinx -b html $(SPHINXOPTS) docs/ $(CURDIR)/debian/python-graphql-core-doc/usr/share/doc/python-graphql-core-doc/html |
| 26 |
dh_sphinxdoc |
| 27 |
endif |