2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2024 Marcel Telka
16 %patch% 01-no-pytest-pretty.patch
17 %patch% 02-no-pytest-examples.patch
21 # Following dependency loops were detected (where 'A --> B' means 'A needs B to
22 # run tests', and 'A ==> B' means 'A needs B for build and/or run'):
24 # dirty_equals --> pydantic --> dirty_equals
25 # dirty_equals --> pydantic ==> pydantic_core --> dirty_equals
27 # To break loops we need to allow this project to integrate without testing in
28 # a case the required projects are not available yet (bootstrap).
30 PYTHON_TEST_BOOTSTRAP = yes
32 # This project does not support tox so we need to provide test requirements
34 TEST_REQUIREMENTS += requirements/tests.in
35 TEST_REQUIREMENTS_EXTRAS += pydantic
37 # We do not have pytest-examples packaged yet.
38 PYTEST_ADDOPTS += --ignore tests/test_docs.py
40 # This is needed for few tests to pass
41 # See also https://github.com/samuelcolvin/dirty-equals/issues/97
42 COMPONENT_TEST_ENV += TZ=UTC