File: rules

package info (click to toggle)
sentry-python 1.9.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,868 kB
  • sloc: python: 21,439; sh: 190; makefile: 120; xml: 2
file content (81 lines) | stat: -rwxr-xr-x 3,171 bytes parent folder | download
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/make -f
#export DH_VERBOSE = 1

# All these tests are needed to ignore too due different behavior of pytest >=7.0.
# Variable can be removed once https://github.com/pytest-dev/pytest/issues/9621
# is fixed.
PYBUILD_TEST_ARGS_PYTEST7_IGNORE=\
	and not test_auto_session_tracking_with_aggregates \
	and not test_keyboard_interrupt_is_captured \
	and not test_transaction_no_error \
	and not test_transaction_with \
	and not test_start_span_to_start_transaction \
	and not test_tracestate_computation \
	and not test_doesnt_add_new_tracestate_to_transaction_when_none_given \
	and not test_adds_tracestate_to_transaction_when_to_traceparent_called \
	and not test_adds_tracestate_to_transaction_when_getting_trace_context \
	and not test_tracestate_is_immutable_once_set \
	and not test_to_traceparent \
	and not test_to_tracestate \
	and not test_sentrytrace_extraction \
	and not test_tracestate_extraction \
	and not test_iter_headers \
	and not test_tracestate_reinflation \
	and not test_continue_from_headers \
	and not test_memory_usage \
	and not test_transactions_do_not_go_through_before_send \
	and not test_start_span_after_finish \
	and not test_span_trimming \
	and not test_transaction_naming \
	and not test_start_transaction \
	and not test_finds_transaction_on_scope \
	and not test_finds_transaction_when_descendent_span_is_on_scope \
	and not test_finds_orphan_span_on_scope \
	and not test_finds_non_orphan_span_on_scope \
	and not test_start_transaction \
	and not test_circular_references \
	and not test_has_tracestate_enabled \

export PYBUILD_NAME=sentry_sdk
# Disable tests failing mostly because of internet access (httpbin.org)
export PYBUILD_TEST_ARGS=-k '\
	not test_basic and \
	not test_403_not_captured and \
	not test_half_initialized and \
	not test_httplib_misuse and \
	not test_crumb_capture and \
	not test_errors and \
	not test_proxy and \
	not test_transport_works and \
	not test_transport_infinite_loop and \
	not test_simple_rate_limits and \
	not test_data_category_limits and \
	not test_complex_limits_without_data_category and \
	not test_handled_exception and \
	not test_unhandled_exception and \
	not test_timeout_error and \
	not test_performance_no_error and \
	not test_performance_error and \
	not test_traces_sampler_gets_correct_values_in_sampling_context and \
	not test_session_mode_defaults_to_request_mode_in_wsgi_handler \
	$(PYBUILD_TEST_ARGS_PYTEST7_IGNORE) \
	'
# Remove directory created while running tests on build
export PYBUILD_AFTER_INSTALL_python3=rm -rf {destdir}/usr/lib/python3*/dist-packages/.hypothesis

# The tests within test_flask.py will failing with werkzeug >= 2.1
export PYBUILD_BEFORE_TEST=rm -f {dir}/tests/integrations/flask/test_flask.py

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

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html -N docs/ $(CURDIR)/debian/python-sentry-sdk-doc/usr/share/doc/python-sentry-sdk-doc/html
	rm $(CURDIR)/debian/python-sentry-sdk-doc/usr/share/doc/python-sentry-sdk-doc/html/.nojekyll
	dh_sphinxdoc
endif

override_dh_auto_clean:
	rm -rf docs/.build
	dh_auto_clean