makemaker-defaults.mk: fallback COMPONENT_PROJECT_URL to dist
[oi-userland.git] / components / python / flake8 / python-integrate-project.conf
blobfb93267c8ecea78d0210514aa770026fa1dbb77e
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
5 # 1.0 of the CDDL.
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 %hook-begin%
17 # https://github.com/PyCQA/flake8/issues/1775
18 DOWNLOAD_URL='https://github.com/PyCQA/flake8/archive/refs/tags/$(HUMAN_VERSION).tar.gz'
20 %include-3%
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)|'"
31 %hook-manifest%
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"