| 1 |
#! /usr/bin/make -f |
| 2 |
export DH_VERBOSE = 1 |
| 3 |
export PYBUILD_NAME=fastapi |
| 4 |
|
| 5 |
# tests/test_tutorial/test_sql_databases/test_tutorial -> avoids circular dependency loop with sqlmodel |
| 6 |
# test_fastapi_cli -> executes coverage directly and expects fastapi to be fully installed |
| 7 |
# ignore::ResourceWarning -> see https://github.com/encode/starlette/pull/2693#issuecomment-2487626977 |
| 8 |
# 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 |
| 9 |
# tests/test_tutorial/test_graphql, they require https://github.com/strawberry-graphql/strawberry too big to package for a single test |
| 10 |
export PYBUILD_TEST_ARGS=-W ignore::DeprecationWarning \ |
| 11 |
-W ignore::ResourceWarning \ |
| 12 |
--ignore=docs_src/ \ |
| 13 |
--ignore-glob=tests/test_tutorial/test_sql_databases/test_tutorial* \ |
| 14 |
--ignore=tests/test_multipart_installation.py \ |
| 15 |
--ignore=tests/test_tutorial/test_graphql \ |
| 16 |
-k "not test_fastapi_cli" |
| 17 |
|
| 18 |
%: |
| 19 |
dh $@ --buildsystem=pybuild |
| 20 |
|
| 21 |
override_dh_installchangelogs: |
| 22 |
dh_installchangelogs docs/en/docs/release-notes.md |
| 23 |
|
| 24 |
# the fastapi command needs fastapi-cli, which is not available in Debian |
| 25 |
execute_after_dh_auto_install: |
| 26 |
rm -r debian/python3-fastapi/usr/bin |