File: rules

package info (click to toggle)
path.py 17.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: python: 2,206; makefile: 154; sh: 2
file content (17 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

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

srcdir=$(shell pwd)
export PYBUILD_NAME=path
export LC_ALL=C.UTF-8
export PYBUILD_TEST_ARGS=$(srcdir)/tests/test_path.py

%:
	dh $@ --buildsystem=pybuild

execute_before_dh_auto_build:
	sed -i path/__init__.py -e "s/@VERSION@/'$(DEB_VERSION_UPSTREAM)'/g"

execute_after_dh_auto_clean:
	rm -rf path.egg-info/