File: rules

package info (click to toggle)
pydocstyle 6.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 776 kB
  • sloc: python: 5,183; makefile: 162
file content (23 lines) | stat: -rwxr-xr-x 692 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

export PYBUILD_NAME=pydocstyle

# skip test_integration at build time
# (cannot install_package from .pybuild directory)
export PYBUILD_TEST_ARGS=--ignore=tests/test_integration.py

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

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_install:
	dh_install --sourcedir=debian/python3-pydocstyle --package=pydocstyle usr/bin/pydocstyle usr/bin
	rm -rf debian/python3-pydocstyle/usr/bin

override_dh_installchangelogs:
	dh_installchangelogs docs/release_notes.rst

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