File: rules

package info (click to toggle)
faker 0.7.7-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,652 kB
  • sloc: python: 31,041; makefile: 169
file content (30 lines) | stat: -rwxr-xr-x 930 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
28
29
30
#!/usr/bin/make -f

PYTHONS:=$(shell pyversions -vr)
PYTHON3S:=$(shell py3versions -vr)

# This file was automatically generated by stdeb 0.8.5 at
# Tue, 22 Dec 2015 10:08:09 +0000
export PYBUILD_NAME=fake-factory
%:
	dh $@ --with python2 --with=python3 --buildsystem=pybuild

override_dh_installman:
	PYTHONPATH="." help2man -n "command to generate fake data" --no-info \
		--output=debian/faker.1 debian/faker/usr/bin/faker
	dh_installman

override_dh_auto_install:
	dh_auto_install
	# Remove the faker script from the python 2 package
	rm debian/python-fake-factory/usr/bin/faker
	# Move the python 3 script to the faker package
	mkdir -p debian/faker/usr/bin
	mv debian/python3-fake-factory/usr/bin/faker debian/faker/usr/bin/

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	set -ex ; for i in $(PYTHONS) $(PYTHON3S) ; do \
		python$$i -W default -m unittest --verbose faker.tests ; \
	done
endif