File: rules

package info (click to toggle)
python-bcrypt 4.2.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 176 kB
  • sloc: python: 467; makefile: 19; sh: 4
file content (27 lines) | stat: -rwxr-xr-x 804 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/rustc/architecture.mk

export DH_VERBOSE=1
export PYBUILD_NAME=bcrypt
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM)
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
export CARGO=/usr/share/cargo/bin/cargo
export CARGO_HOME=$(CURDIR)/debian/cargo_home

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

execute_before_dh_auto_configure:
	$(CARGO) prepare-debian debian/cargo_registry --link-from-system

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x" dh_auto_test

override_dh_installdocs:
	dh_installdocs -A README.rst

override_dh_installchangelogs:
	sed -n '/'Changelog'/,/'Usage'/p' README.rst > .pybuild/changelog
	dh_installchangelogs -A .pybuild/changelog