File: rules

package info (click to toggle)
python-formencode 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,856 kB
  • sloc: python: 6,772; makefile: 130; sh: 96; javascript: 61
file content (16 lines) | stat: -rwxr-xr-x 636 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/make -f
export PYBUILD_NAME=formencode
export DH_ALWAYS_EXCLUDE=tests
export PYBUILD_TEST_ARGS="{dir}"

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install --buildsystem=pybuild
	dh_install -X.po -X.py -ppython3-formencode src/formencode/i18n/* /usr/share/locale/
	find debian/python3-formencode/ -type d \( -name i18n -or -name docs \) -print0 | xargs --null --no-run-if-empty rm -rf

override_dh_auto_test:
	# network is required for the http://this.domain.does.not.exist.example.org/test.html test
	LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 http_proxy='' dh_auto_test --buildsystem=pybuild -- --test-pytest