File: rules

package info (click to toggle)
python-slugify 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 144 kB
  • sloc: python: 389; makefile: 15; sh: 1
file content (23 lines) | stat: -rwxr-xr-x 664 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
#!/usr/bin/make -f

export PYBUILD_NAME=slugify
export PYBUILD_DEST_DIR_python3=debian/python3-slugify
export PYBUILD_DEST_DIR_APP=debian/slugify

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

override_dh_auto_install:
	dh_auto_install
	# Move the python3 application to the application package.
	mkdir -p $(PYBUILD_DEST_DIR_APP)/usr/bin
	mv $(PYBUILD_DEST_DIR_python3)/usr/bin/slugify $(PYBUILD_DEST_DIR_APP)/usr/bin

override_dh_installman:
	# Force dh_installman to install the manpage in the app package
	dh_installman -p slugify debian/slugify.1

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="python{version} test.py" \
	dh_auto_test