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
16 %patch% 02-gen-pycodestyle-plugin.patch
17 %patch% 04-no-coverage-reports.patch
20 # flake8 >= 6.0.0 requires Python >= 3.8
21 PYTHON_VERSIONS := $(filter-out 3.7, $(PYTHON_VERSIONS))
26 # Testing expects there are no additional flake8 plugins installed otherwise
27 # some tests will fail. This is the current list of packages that should NOT
32 # flake8-typing-imports
36 # Do not generate dependencies for usr/bin files otherwise we would end with duplicate dependencies on importlib-metadata.
37 printf '<transform file path=usr/bin -> add pkg.depend.bypass-generate .*/importlib_metadata.* >\n' >> "$DISTRIBUTION-PYVER.p5m"