| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=celery |
| 4 |
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/test.db {build_dir}/[0-9]* {build_dir}/statefilename* |
| 5 |
export PYBUILD_TEST_ARGS= --ignore=t/unit/backends/test_base.py --ignore=t/unit/backends/test_gcs.py --ignore=t/unit/backends/test_rpc.py --ignore=t/unit/contrib/test_pytest.py --ignore=t/unit/concurrency/test_eventlet.py --ignore=t/unit/concurrency/test_prefork.py -k "not test_check_privileges[accept_content0] and not test_check_privileges[accept_content1] and not test_check_privileges[accept_content2] and not test_regression_worker_startup_info and not test_with_guid and not test_only_gid and not test_init_mongodb_dnspython2_pymongo3_seedlist" t/unit |
| 6 |
export PYTEST_PLUGINS=celery.contrib.pytest |
| 7 |
|
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 11 |
|
| 12 |
execute_before_dh_installman: |
| 13 |
PYTHONPATH=$(CURDIR) python3 -c "from click_man.core import write_man_pages; from celery.bin.celery import celery; from celery import __version__; write_man_pages('celery', celery, version=__version__, target_dir='$(CURDIR)')" |
| 14 |
|
| 15 |
execute_after_dh_auto_install: |
| 16 |
mv debian/python3-celery/usr/bin/celery debian/celery/usr/bin |
| 17 |
rmdir -p --ignore-fail-on-non-empty debian/python3-celery/usr/bin |
| 18 |
|
| 19 |
override_dh_sphinxdoc: |
| 20 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 21 |
PYTHONPATH=. python3 -m sphinx -b html -d docs/.build/.doctrees -N docs $(CURDIR)/debian/python-celery-doc/usr/share/doc/python-celery-doc/html |
| 22 |
dh_sphinxdoc |
| 23 |
endif |