File: rules

package info (click to toggle)
ndg-httpsclient 0.5.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 248 kB
  • sloc: python: 1,083; makefile: 27; sh: 1
file content (15 lines) | stat: -rwxr-xr-x 381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

export PYBUILD_NAME=ndg-httpsclient

%:
	dh $@ --with 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