File: rules

package info (click to toggle)
aiomysql 0.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 912 kB
  • sloc: python: 6,894; makefile: 213
file content (33 lines) | stat: -rwxr-xr-x 750 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
26
27
28
29
30
31
32
33
#!/usr/bin/make -f

export PYBUILD_NAME=aiomysql
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS=-v

export READTHEDOCS=True

%:
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
else
	dh $@ --with python3 --buildsystem=pybuild
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .cache
	rm -rf .pytest_cache
	rm -f tests/fixtures/my.cnf
	rm -f docs/make.bat
	rm -f aiomysql-0.1.1/aiomysql/_scm_version.py

override_dh_auto_build:
	dh_auto_build
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html
endif

override_dh_auto_test:
ifneq ($(filter pkg.aiomysql.integrationtests,$(DEB_BUILD_PROFILES)),)
	dh_auto_test
endif