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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
TEST_EXCLUDE := not test_basic_json_use and not test_load_cassette_with_custom_persister
# Bug #1087334
TEST_EXCLUDE += and not test_post[http] and not test_post[https]
TEST_EXCLUDE += and not test_body_consumed_once_stream
TEST_EXCLUDE += and not test_body_consumed_once_iterator
TEST_EXCLUDE += and not test_additional_matchers
export PYBUILD_NAME=vcr
export PYBUILD_TEST_ARGS=--ignore tests/integration/test_aiohttp.py \
--ignore tests/integration/test_tornado.py \
--ignore tests/integration/test_requests.py \
-m "not online" \
-k "$(TEST_EXCLUDE)"
export http_proxy=
export https_proxy=
include /usr/share/dpkg/pkg-info.mk
BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)")
SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)"
export LC_ALL=C.UTF-8
%:
dh $@ --buildsystem=pybuild
override_dh_installdocs:
pandoc -f rst -t plain -o .pybuild/README README.rst
dh_installdocs -A .pybuild/README
override_dh_installchangelogs:
pandoc -f rst -t plain -o .pybuild/changelog docs/changelog.rst
dh_installchangelogs -A .pybuild/changelog
override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
PYTHONPATH=. python3 -m sphinx $(SPHINXOPTS) -N -bhtml docs/ \
debian/python-vcr-doc/usr/share/doc/python-vcr-doc/html/
# Remove the zero byte file in doc directory.
rm debian/python-vcr-doc/usr/share/doc/python-vcr-doc/html/.nojekyll
dh_sphinxdoc
endif
|