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-shebang.patch
17 %patch% 02-setuptools.patch
18 %patch% 03-tox-requires.patch
19 %patch% 04-no-coverage_pyver_pragma.patch
20 %patch% 05-tox-no-pip-install.patch
21 %patch% 06-coverage.patch
22 %patch% 07-no-pandas.patch
25 # https://github.com/domdfcoding/domdf_python_tools/issues/114
26 DOWNLOAD_URL='https://github.com/domdfcoding/domdf_python_tools/archive/refs/tags/v$(HUMAN_VERSION).tar.gz'
28 # The project summary at PyPI contains strange characters that could cause
29 # issues so override it.
30 SUMMARY='Helpful functions for Python'
34 # Following dependency loops were detected (where 'A --> B' means 'A needs B to
35 # run tests', and 'A ==> B' means 'A needs B for build and/or run'):
37 # domdf_python_tools --> coincidence ==> whey ==> domdf_python_tools
39 # To break loops we need to allow this project to integrate without testing in
40 # a case the required projects are not available yet (bootstrap).
42 PYTHON_TEST_BOOTSTRAP = yes
44 # https://github.com/domdfcoding/domdf_python_tools/issues/82
45 PYTEST_ADDOPTS += --deselect tests/test_import_tools.py::test_discover_entry_points_by_name_object_match_func
46 PYTEST_ADDOPTS += --deselect tests/test_import_tools.py::test_discover_entry_points_by_name_name_match_func
47 PYTEST_ADDOPTS += --deselect tests/test_import_tools.py::test_discover_entry_points
50 COMPONENT_TEST_TRANSFORMS += "-e 's/0x0\*[0-9a-f]\{12\}/\$$(POINTER)/g'"