File: rules

package info (click to toggle)
python-cheroot 9.0.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,052 kB
  • sloc: python: 5,878; makefile: 13; sh: 2
file content (20 lines) | stat: -rwxr-xr-x 878 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=cheroot
export PYBUILD_SYSTEM=custom
export PYBUILD_CONFIGURE_ARGS=true
export PYBUILD_BUILD_ARGS=true
export PYBUILD_INSTALL_ARGS=mkdir -p {destdir}/usr/lib/python{version}/dist-packages && \
	cp -r cheroot {destdir}/usr/lib/python{version}/dist-packages && \
	sed -e 's/VERSION/$(DEB_VERSION_UPSTREAM:+ds=)/g' debian/cheroot.egg-info > \
	{destdir}/usr/lib/python{version}/dist-packages/cheroot-$(DEB_VERSION_UPSTREAM:+ds=).egg-info
# Run tests directly from package root as build step is skipped
# Ignore WSGI tests as missing dependency (jaraco.context).
# Disable automatic http(s)_proxy from pybuild for SSL tests.
export PYBUILD_TEST_ARGS=http_proxy= https_proxy= python{version} -m pytest --ignore-glob=**/test_wsgi.py -n1
export LC_ALL=C.UTF-8

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