# # 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-no-coverage.patch %patch% 02-pytest-indirectly.patch %patch% 03-test-plugins.patch %patch% 04-test-ELOOP.patch %include-2% # This component is required by following bootstrapped components so it must be # bootstrapped too. # - tox (test bootstrap) # - virtualenv (test bootstrap) PYTHON_TEST_BOOTSTRAP = yes # Python 3.9 is not supported by platformdirs >= 4.5.0 PYTHON_VERSIONS := $(filter-out 3.9,$(PYTHON_VERSIONS)) %include-3% # Testing needs the XDG_RUNTIME_DIR variable pointing to own runtime directory # with permissions 0700 COMPONENT_PRE_TEST_ACTION += $(MKDIR) $(COMPONENT_TEST_BUILD_DIR)/.xdg_runtime_dir ; COMPONENT_PRE_TEST_ACTION += $(CHMOD) 0700 $(COMPONENT_TEST_BUILD_DIR)/.xdg_runtime_dir ; COMPONENT_TEST_ENV += XDG_RUNTIME_DIR=$(COMPONENT_TEST_BUILD_DIR)/.xdg_runtime_dir COMPONENT_POST_TEST_ACTION += $(RM) -r $(COMPONENT_TEST_BUILD_DIR)/.xdg_runtime_dir ;