File: rules

package info (click to toggle)
pydocstyle 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 508 kB
  • sloc: python: 3,139; makefile: 160
file content (28 lines) | stat: -rwxr-xr-x 934 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DEB_BUILD_OPTIONS=nocheck
export PYBUILD_NAME=pydocstyle
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin

# skip test_integration (install_package needs fix, doesn't run with py3, writes into /usr/local etc.)
# https://github.com/PyCQA/pydocstyle/issues/177
export PYBUILD_BEFORE_TEST=cp -r src/tests {build_dir}
export PYBUILD_TEST_ARGS=-x tests/test_d*
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests

DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +%F -f -)

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	python3 setup.py install_scripts --skip-build \
		--install-dir=debian/$(PYBUILD_NAME)/usr/bin

override_dh_installchangelogs:
	dh_installchangelogs docs/release_notes.rst

override_dh_installman:
	PYTHONPATH=./src sphinx-build -D today_fmt="$(DEBDATE)" -N -bman docs .pybuild
	dh_installman .pybuild/pydocstyle.1