File: rules

package info (click to toggle)
ndg-httpsclient 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 244 kB
  • sloc: python: 1,083; makefile: 30; sh: 1
file content (19 lines) | stat: -rwxr-xr-x 470 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
#!/usr/bin/make -f

export PYBUILD_NAME=ndg-httpsclient

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

override_dh_auto_test:
	OLDDIR=$$PWD && cd ndg/httpsclient/test; \
	  openssl s_server -www -cert pki/localhost.crt \
	          -key pki/localhost.key -accept 4443 & \
	  S=$$! ; \
	  cd $$OLDDIR; \
	  PYTHONPATH=. python ndg/httpsclient/test/test_urllib2.py ; \
	  kill $$S

override_dh_python3:
	dh_python3
	rm -rf debian/python3-ndg-httpsclient/usr/bin