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
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
export PYBUILD_TEST_ARGS=-vv --durations=10 \
--ignore=tests/test_multiprocessing.py -k "\
not postgres and \
not test_limiter_constructor_02 and \
not test_bucket_leak and \
not test_factory_leak and \
not test_limiter_async_factory_get and \
not test_mp_bucket_async and \
not test_bucket_full and \
not test_limiter_concurrency"
export PYBUILD_BEFORE_TEST=redis-server --daemonize yes
export PYBUILD_AFTER_TEST=redis-cli shutdown
%:
dh $@ --buildsystem=pybuild
override_dh_auto_configure:
sed -i "s/^version = .*/version = \"$(DEB_VERSION_UPSTREAM)\"/" pyproject.toml
dh_auto_configure
override_dh_auto_build:
dh_auto_build $@ --buildsystem=pybuild
cd docs; PYTHONPATH=$(CURDIR) LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 sphinx-build -bhtml -d _build/doctrees . _build/html
|