File: rules

package info (click to toggle)
python-pyramid-chameleon 0.3-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: python: 976; makefile: 82
file content (21 lines) | stat: -rwxr-xr-x 597 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
#!/usr/bin/make -f

export PYBUILD_NAME=pyramid-chameleon
export PYBUILD_TEST_ARGS=-k 'not test___call__spec_alreadyregistered'
PY3VERS := $(shell py3versions -sv)

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

override_dh_auto_clean:
	rm -rf docs/_build
	dh_auto_clean

override_dh_auto_build:
	dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
endif
	set -e && for i in $(PY3VERS); do \
		cp -r $(CURDIR)/pyramid_chameleon/tests/fixtures/ $(CURDIR)/.pybuild/cpython3_$${i}_pyramid-chameleon/build/pyramid_chameleon/tests ; \
	done