File: rules

package info (click to toggle)
python-pyftpdlib 1.5.1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 804 kB
  • ctags: 1,292
  • sloc: python: 8,582; makefile: 90
file content (24 lines) | stat: -rwxr-xr-x 798 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
#!/usr/bin/make -f

export PYBUILD_NAME=pyftpdlib

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

override_dh_auto_test:
ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
	EXCLUDETESTS="test_functional.py test_functional_ssl.py" \
	PYTHONPATH=. TRAVIS=1 python pyftpdlib/test/runner.py
	EXCLUDETESTS="test_functional.py test_functional_ssl.py" \
	PYTHONPATH=. TRAVIS=1 python3 pyftpdlib/test/runner.py
endif

override_dh_python2:
	dh_python2 -O--buildsystem=pybuild
	rm -f ./debian/python-pyftpdlib/usr/bin/ftpbench \
	rm -rf ./debian/python-pyftpdlib/usr/lib/python2.7/dist-packages/pyftpdlib/test/

override_dh_python3:
	dh_python3 -O--buildsystem=pybuild
	rm -f ./debian/python3-pyftpdlib/usr/bin/ftpbench
	rm -rf ./debian/python3-pyftpdlib/usr/lib/python3/dist-packages/pyftpdlib/test/