File: rules

package info (click to toggle)
pylint 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,268 kB
  • sloc: python: 36,207; lisp: 182; makefile: 155
file content (42 lines) | stat: -rwxr-xr-x 1,333 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
42
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_BEFORE_TEST=cp {dir}/pytest.ini {build_dir}; cp -r {dir}/pylint/test {build_dir}/pylint/; rm {build_dir}/pylint/test/functional/unused_typing_imports.py {build_dir}/pylint/test/functional/missing_final_newline.py
export PYBUILD_AFTER_TEST=rm -r {build_dir}/pytest.ini {build_dir}/pylint/test {build_dir}/.pytest_cache

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

override_dh_auto_build:
	dh_auto_build
	PATH=$(CURDIR):$$PATH $(MAKE) -C doc html PYTHONPATH=$(CURDIR) PYTHON=python3

override_dh_install:
	dh_install
	for exec in pylint symilar epylint pyreverse ; do \
	  mv debian/pylint3/usr/bin/$$exec debian/pylint3/usr/bin/$${exec}3 ; \
	done

override_dh_installman:
	dh_installman -ppylint3 man/*.1
	for exec in pylint symilar epylint pyreverse ; do \
	  mv debian/pylint3/usr/share/man/man1/$$exec.1 debian/pylint3/usr/share/man/man1/$${exec}3.1 ; \
	done

override_dh_installchangelogs:
	dh_installchangelogs -i ChangeLog

override_dh_compress:
	dh_compress -i -X.py -X.ini -X.xml -Xtest

override_dh_installexamples:
	dh_installexamples -ppylint-doc examples/*

override_dh_installdocs:
	dh_installdocs -A README.rst
	dh_installdocs -ppylint-doc doc/_build/html

override_dh_missing:
	dh_missing --fail-missing