# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2022 Marcel Telka # %patch% 01-test-skip-flit_core.patch %patch% 02-no-uv.patch %patch% 03-test_uv_install_strips_pythonpath.patch %patch% 04-no-tox-uv.patch %patch% 05-no-pip.patch %patch% 06-no-coverage.patch %patch% 07-pytest-indirectly.patch %include-2% # Since we cannot use the 'build' package to build itself we need to bootstrap. PYTHON_BOOTSTRAP = yes # Python 3.9 is not supported by build >= 1.5.0 PYTHON_VERSIONS := $(filter-out 3.9,$(PYTHON_VERSIONS)) %include-3% # Avoid rewrite failure with xdist PYTEST_ADDOPTS += --assert=plain # This list could vary between Python versions COMPONENT_TEST_TRANSFORMS += "-e '/^installed packages of interest:/d'" # Random directory name COMPONENT_TEST_TRANSFORMS += "-e 's|/tmp/.*/garbage[^/]*|\$$(TMPDIR)|'"