File: rules

package info (click to toggle)
nose 1.3.7-15
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,120 kB
  • sloc: python: 15,775; makefile: 100; xml: 42; sh: 2
file content (41 lines) | stat: -rwxr-xr-x 1,519 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
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

DESTDIR3 := $(CURDIR)/debian/python3-nose

export PYBUILD_NAME = nose
export PYBUILD_AFTER_BUILD = {interpreter} -m fissix --write --nobackups --no-diffs {build_dir}
export PYBUILD_BEFORE_TEST = cp -r {build_dir} {build_dir}.tests && \
	cp -r functional_tests unit_tests setup.cfg {build_dir}.tests && \
	cd {build_dir}.tests && \
	patch unit_tests/test_issue_100.rst < unit_tests/test_issue_100.rst.py3.patch && \
	{interpreter} -m fissix --write --nobackups --no-diffs functional_tests unit_tests && \
	find -name '*.rst' | xargs {interpreter} -m fissix --doctests_only --write --nobackups --no-diffs
export PYBUILD_AFTER_TEST = rm -rf {build_dir}.tests
export PYBUILD_TEST_ARGS = cd {build_dir}.tests && {interpreter} -m nose -v --with-doctest

BUILDDIR3 := $(shell pybuild --print build_dir --interpreter python3)

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=$(BUILDDIR3) sphinx-build doc build/sphinx/html

override_dh_auto_test:
	dh_auto_test -- --system=custom

override_dh_auto_install:
	dh_auto_install
	cd $(DESTDIR3)/usr/bin/ && mv nosetests nosetests3
	sed -i -e 's,#!/usr/bin/python3.*,#!/usr/bin/python3,' $(DESTDIR3)/usr/bin/nosetests3

override_dh_installman:
	dh_installman -p python3-nose nosetests.1
	cd $(DESTDIR3)/usr/share/man/man1 && mv nosetests.1 nosetests3.1

override_dh_installdocs:
	dh_installdocs -ppython-nose-doc --doc-main-package=python-nose-doc
	dh_installdocs --remaining-packages

override_dh_auto_clean: