File: rules

package info (click to toggle)
python-filelock 3.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 128 kB
  • sloc: python: 604; makefile: 9
file content (26 lines) | stat: -rwxr-xr-x 597 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
25
26
#!/usr/bin/make -f

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

build3vers := $(shell py3versions -sv)

export PYBUILD_NAME = filelock

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

# workaround for https://github.com/tox-dev/py-filelock/issues/133
#override_dh_auto_configure:
#	sed -i "9i version = $(DEB_VERSION_UPSTREAM)" setup.cfg
#	dh_auto_configure

override_dh_auto_clean:
	#pass

#override_dh_clean:
#	dh_clean
	#(grep 'version =' setup.cfg && sed -i '9d' setup.cfg) || true

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="cd {dir}; {interpreter} -m pytest" dh_auto_test