component(developer/golang-123): Add Component
[oi-userland.git] / components / python / domdf_python_tools / python-integrate-project.conf
blobcd174d76bb9338e7835f52c68a8b9e112fce3642
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
5 # 1.0 of the CDDL.
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
24 %hook-begin%
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'
32 %include-2%
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
43 %include-3%
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
49 # Normalize pointers
50 COMPONENT_TEST_TRANSFORMS += "-e 's/0x0\*[0-9a-f]\{12\}/\$$(POINTER)/g'"