File: rules

package info (click to toggle)
python-eth-typing 5.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: python: 1,968; makefile: 234
file content (21 lines) | stat: -rwxr-xr-x 600 bytes parent folder | download | duplicates (2)
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/