| 1 |
#! /usr/bin/make -f |
| 2 |
export DH_VERBOSE = 1 |
| 3 |
export PYBUILD_NAME=fastapi |
| 4 |
|
| 5 |
# tests/test_response_by_alias.py -> TypeError: Field() missing 1 required positional argument: 'default' |
| 6 |
# test_root, test_async_testing -> until we have an up-to-date httpx, which doesnt cause "AttributeError: module 'httpcore' has no attribute 'PlainByteStream'" |
| 7 |
# test_dependency_gets_exception -> https://github.com/tiangolo/fastapi/discussions/9934 |
| 8 |
# test_path_operation_img -> needs a file in the doc/ dir, not available during autopkgtests |
| 9 |
# tests/test_tutorial/test_sql_databases/test_tutorial -> avoids circular dependency loop with sqlmodel |
| 10 |
# test_fastapi_cli -> executes coverage directly and expects fastapi to be fully installed |
| 11 |
# ignore::ResourceWarning -> see https://github.com/encode/starlette/pull/2693#issuecomment-2487626977 |
| 12 |
# 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 |
| 13 |
# tests/test_tutorial/test_graphql, they require https://github.com/strawberry-graphql/strawberry too big to package for a single test |
| 14 |
export PYBUILD_TEST_ARGS=-W ignore::DeprecationWarning \ |
| 15 |
-W ignore::ResourceWarning \ |
| 16 |
--ignore=docs_src/ \ |
| 17 |
--ignore-glob=tests/test_tutorial/test_sql_databases/test_tutorial* \ |
| 18 |
--ignore=tests/test_response_by_alias.py \ |
| 19 |
--ignore=tests/test_multipart_installation.py \ |
| 20 |
--ignore=tests/test_tutorial/test_graphql \ |
| 21 |
-k " \ |
| 22 |
not test_root \ |
| 23 |
and not test_async_testing \ |
| 24 |
and not test_dependency_gets_exception \ |
| 25 |
and not test_path_operation_img \ |
| 26 |
and not test_fastapi_cli \ |
| 27 |
" |
| 28 |
|
| 29 |
%: |
| 30 |
dh $@ --with python3 --buildsystem=pybuild |