File: rules

package info (click to toggle)
pyrate-limiter 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,120 kB
  • sloc: python: 3,223; makefile: 21
file content (25 lines) | stat: -rwxr-xr-x 839 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
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