File: rules

package info (click to toggle)
twine 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 708 kB
  • sloc: python: 3,233; makefile: 140; sh: 5
file content (22 lines) | stat: -rwxr-xr-x 597 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
#!/usr/bin/make -f
export PYBUILD_NAME=twine

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

override_dh_auto_build:
	dh_auto_build --buildsystem=pybuild
	# Build sphinx html documentation and man pages
	python3 setup.py build_sphinx -b html
	python3 setup.py build_sphinx -b man

override_dh_auto_test:
	mkdir .pybuild/egg
	PYTHONPATH=$(CURDIR)/.pybuild/egg \
	  dh_auto_test -- \
	  --before-test '{interpreter} {dir}/setup.py egg_info --egg-base={dir}/.pybuild/egg' \
	  --test-pytest \
	  --test-args '--ignore tests/test_integration.py'

override_dh_compress:
	dh_compress -X.html