File: rules

package info (click to toggle)
python-dotenv 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 220 kB
  • sloc: python: 670; makefile: 47
file content (32 lines) | stat: -rwxr-xr-x 779 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
27
28
29
30
31
32
#!/usr/bin/make -f

export PYBUILD_NAME=python-dotenv
export DH_VERBOSE=1
export LC_ALL=C.UTF-8
export LANG=C.UTF-8


# disable failing tests
export PYBUILD_TEST_ARGS=-k 'not test_default_path and not test_console_script'

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

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

override_dh_auto_clean:
	dh_auto_clean
	rm debian/python-dotenv.1 .cache -rf

override_dh_auto_install:
	dh_auto_install
	mv debian/python3-dotenv/usr/bin/dotenv debian/python3-dotenv/usr/bin/python-dotenv

override_dh_installman:
	PYTHONPATH=. \
		help2man -N -L C.UTF-8 \
		-n ".env file manipulator" \
		--no-info --version-string="${DEB_VERSION}" \
		-o debian/python-dotenv.1 \
		./debian/python3-dotenv/usr/bin/python-dotenv
	dh_installman ./debian/python-dotenv.1