#! /usr/bin/make -f export DH_VERBOSE = 1 export PYBUILD_NAME=fastapi # tests/test_tutorial/test_sql_databases/test_tutorial -> avoids circular dependency loop with sqlmodel # test_fastapi_cli -> executes coverage directly and expects fastapi to be fully installed # ignore::ResourceWarning -> see https://github.com/encode/starlette/pull/2693#issuecomment-2487626977 # 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 # tests/test_tutorial/test_graphql, they require https://github.com/strawberry-graphql/strawberry too big to package for a single test export PYBUILD_TEST_ARGS=-W ignore::DeprecationWarning \ -W ignore::ResourceWarning \ --ignore=docs_src/ \ --ignore-glob=tests/test_tutorial/test_sql_databases/test_tutorial* \ --ignore=tests/test_multipart_installation.py \ --ignore=tests/test_tutorial/test_graphql \ -k "not test_fastapi_cli" %: 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