| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export PYBUILD_NAME = gjson |
| 4 | export PYBUILD_TEST_PYTEST = 1 |
| 5 | export PYBUILD_TEST_ARGS = {dir}/tests/unit |
| 6 | |
| 7 | include /usr/share/dpkg/pkg-info.mk |
| 8 | |
| 9 | # tell the test suite and build_sphinx about our version number |
| 10 | export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM) |
| 11 | |
| 12 | %: |
| 13 | dh $@ --with python3 --buildsystem=pybuild |
| 14 | |
| 15 | override_dh_installman: |
| 16 | PYTHONPATH=. sphinx-build -b man doc/source/ doc/build/man |
| 17 | sed -i='' -e 's/^\.B/.B /' doc/build/man/gjson.1 |
| 18 | dh_installman |