#! /usr/bin/make -f export DH_VERBOSE = 1 export PYBUILD_NAME=fastapi # test_fastapi_cli -> runs the fastapi command, which needs fastapi-cli, not available in Debian # ignore the utcfromtimestamp() DeprecationWarning -> upstream turns warnings into errors, and protobuf calls the deprecated datetime.utcfromtimestamp() when imported # tests/test_multipart_installation.py -> now that both multipart and python-multipart are in debian, we need to relax some of these tests, since dont install our own multipart proxy # telemetry tests of the integration with logfire -> python-logfire build-depends on fastapi (a b-d cycle) and is not in testing # tests/test_translate.py -> tests upstream's docs translation tooling in scripts/, not shipped, and needs git export PYBUILD_TEST_ARGS=-W "ignore:datetime.datetime.utcfromtimestamp() is deprecated:DeprecationWarning" \ --ignore=tests/test_multipart_installation.py \ --ignore=tests/test_translate.py \ -k "not (test_fastapi_cli and not test_fastapi_cli_not_installed) \ and not (test_background_task_integrations and logfire) \ and not test_current_logfire \ and not test_logfire_global_provider_without_fastapi_instrumentor \ and not test_logfire_native_spans_and_exception_logs \ and not test_registration_provider_prefers_public_metric_reader \ and not test_concurrent_provider_owner_wins[True] \ and not (test_environment_export_with_existing_integrations and logfire)" # the telemetry tests export to an OTLP collector on 127.0.0.1, but pybuild # only exempts localhost from its unreachable http_proxy export no_proxy=localhost,127.0.0.1 %: dh $@ --buildsystem=pybuild override_dh_installchangelogs: dh_installchangelogs docs/en/docs/release-notes.md # the fastapi command needs fastapi-cli, which is not available in Debian execute_after_dh_auto_install: rm -r debian/python3-fastapi/usr/bin