File: rules

package info (click to toggle)
python-requests-oauthlib 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 516 kB
  • sloc: python: 2,169; makefile: 157
file content (19 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
PYTHON3S:=$(shell py3versions -vr)
export PYBUILD_TEST_ARGS= tests/ -k "not testCanPostBinaryData and not test_content_type_override and not test_url_is_native_str and not test_login"

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

execute_after_dh_clean:
	rm -rf build requests-oauthlib.egg-info
	rm -rf docs/_build/

execute_after_dh_auto_build:
	make -C docs html

override_dh_auto_install:
	set -e && for pyvers in $(PYTHON3S); do \
		python$$pyvers setup.py install --install-layout=deb \
			--root $(CURDIR)/debian/python3-requests-oauthlib; \
	done