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 2022 Marcel Telka
17 # https://github.com/PyCQA/flake8/issues/1775
18 DOWNLOAD_URL='https://github.com/PyCQA/flake8/archive/refs/tags/$(HUMAN_VERSION).tar.gz'
21 # Testing expects there are no additional flake8 plugins installed otherwise
22 # some tests will fail.
23 TEST_CONFLICTING_PACKAGES.python += library/python/flake8-2020
24 TEST_CONFLICTING_PACKAGES.python += library/python/flake8-bugbear
25 TEST_CONFLICTING_PACKAGES.python += library/python/flake8-noqa
26 TEST_CONFLICTING_PACKAGES.python += library/python/flake8-typing-imports
27 TEST_CONFLICTING_PACKAGES.python += library/python/teamcity-messages
29 # Random directory name
30 COMPONENT_TEST_TRANSFORMS += "-e 's|/tmp/.*/garbage[^/]*|\$$(TMPDIR)|'"
32 # Do not generate dependency for usr/bin files on importlib-metadata. It is not needed for Python >= 3.8.
33 printf '\n<transform file path=usr/bin -> add pkg.depend.bypass-generate .*/importlib_metadata.* >\n' >> "$DISTRIBUTION-PYVER.p5m"