| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=aiomysql |
| 4 |
export PYBUILD_TEST_PYTEST=1 |
| 5 |
export PYBUILD_TEST_ARGS=-v |
| 6 |
|
| 7 |
export READTHEDOCS=True |
| 8 |
|
| 9 |
%: |
| 10 |
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) |
| 11 |
dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 12 |
else |
| 13 |
dh $@ --with python3 --buildsystem=pybuild |
| 14 |
endif |
| 15 |
|
| 16 |
override_dh_auto_clean: |
| 17 |
dh_auto_clean |
| 18 |
rm -rf .cache |
| 19 |
rm -rf .pytest_cache |
| 20 |
rm -f tests/fixtures/my.cnf |
| 21 |
rm -f docs/make.bat |
| 22 |
rm -f aiomysql/_scm_version.py |
| 23 |
|
| 24 |
override_dh_auto_build: |
| 25 |
dh_auto_build |
| 26 |
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) |
| 27 |
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html |
| 28 |
endif |
| 29 |
|
| 30 |
override_dh_auto_test: |
| 31 |
ifneq ($(filter pkg.aiomysql.integrationtests,$(DEB_BUILD_PROFILES)),) |
| 32 |
dh_auto_test |
| 33 |
endif |