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 29 30 31
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk # DEB_VERSION
# downloads from fromteamdigitale.github.io, see tests/data/openapi/refs.yaml
test_expr = not test_openapi_parser_parse_remote_ref
# ruff isn't currently in testing, and running these sorts of style checks
# as a downstream doesn't really make sense anyway.
test_expr += and not test_ruff
test_expr += and not test_type_checking_imports_default_to_runtime_imports_for_modular_pydantic_ruff
test_expr += and not test_generate_multi_module_pydantic_ruff_defaults_to_runtime_imports
test_expr += and not test_use_type_checking_imports_for_multi_module_pydantic_ruff
test_expr += and not test_openapi_parser_parse_modular_pydantic_v2_ruff_keeps_runtime_imports
test_expr += and not test_no_use_type_checking_imports
export PYBUILD_TEST_ARGS= -k '$(test_expr)'
%:
dh $@ --buildsystem=pybuild
B = $(CURDIR)/debian/tmp/usr/bin
M = $(CURDIR)/debian/tmp/usr/share/man/man1
execute_after_dh_auto_install:
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
mkdir -pv $(M)
env PYTHONPATH=$(CURDIR)/src \
help2man --no-info --version-string="$(DEB_VERSION)" \
--help-option="--no-color --help" \
-Idebian/datamodel-codegen.h2m \
$(B)/datamodel-codegen -o $(M)/datamodel-codegen.1
endif
|