# # 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 # %hook-begin% # https://github.com/PyCQA/flake8/issues/1775 DOWNLOAD_URL='https://github.com/PyCQA/flake8/archive/refs/tags/$(HUMAN_VERSION).tar.gz' %include-3% # Testing expects there are no additional flake8 plugins installed otherwise # some tests will fail. TEST_CONFLICTING_PACKAGES.python += library/python/flake8-2020 TEST_CONFLICTING_PACKAGES.python += library/python/flake8-bugbear TEST_CONFLICTING_PACKAGES.python += library/python/flake8-noqa TEST_CONFLICTING_PACKAGES.python += library/python/flake8-typing-imports TEST_CONFLICTING_PACKAGES.python += library/python/teamcity-messages # Random directory name COMPONENT_TEST_TRANSFORMS += "-e 's|/tmp/.*/garbage[^/]*|\$$(TMPDIR)|'" %hook-manifest% # Do not generate dependency for usr/bin files on importlib-metadata. It is not needed for Python >= 3.8. printf '\n add pkg.depend.bypass-generate .*/importlib_metadata.* >\n' >> "$DISTRIBUTION-PYVER.p5m"