File: rules

package info (click to toggle)
fastapi 0.118.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,212 kB
  • sloc: python: 69,848; javascript: 369; sh: 18; makefile: 17
file content (28 lines) | stat: -rwxr-xr-x 1,586 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /usr/bin/make -f
export DH_VERBOSE = 1
export PYBUILD_NAME=fastapi

# tests/test_response_by_alias.py -> TypeError: Field() missing 1 required positional argument: 'default'
# test_root, test_async_testing -> until we have an up-to-date httpx, which doesnt cause "AttributeError: module 'httpcore' has no attribute 'PlainByteStream'"
# test_dependency_gets_exception -> https://github.com/tiangolo/fastapi/discussions/9934
# test_path_operation_img -> needs a file in the doc/ dir, not available during autopkgtests
# 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
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_response_by_alias.py \
			 --ignore=tests/test_multipart_installation.py \
			 -k " \
			         not test_root \
			     and not test_async_testing \
			     and not test_dependency_gets_exception \
			     and not test_path_operation_img \
			     and not test_fastapi_cli \
			 "

%:
	dh $@ --with python3 --buildsystem=pybuild