1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
%:
dh $@ --buildsystem=pybuild
execute_before_dh_auto_build:
# Build HTML documentation
mkdir -p docs/_build/html
sphinx-build -b html -D html_theme=default \
docs docs/_build/html
execute_before_dh_auto_install:
# Use debhelper to obtain the upstream version
# See patches/0001-change-auto-version.patch for more info
sed -i "s/@DEB_VERSION@/$$(head -1 debian/changelog | \
grep -Po '\(\K[^~+-]+')/" \
eth_typing/__init__.py
execute_after_dh_sphinxdoc:
# Delete _source directory
rm -rf debian/python3-eth-typing/usr/share/doc/python3-eth-typing/html/_sources/
|