Marcel Telka
2024-02-20 4cc83dd687cb8e7609381b9a1388a22898585e98
components/python/libcst/python-integrate-project.conf
@@ -13,17 +13,8 @@
# Copyright 2023 Marcel Telka
#
%include-2%
#
# Following dependency loops were detected (where 'A --> B' means 'A needs B to
# run tests', and 'A ==> B' means 'A needs B for build and/or run'):
#
# libcst --> hypothesmith ==> libcst
#
# To break loops we need to allow this project to integrate without testing in
# a case the required projects are not available yet (bootstrap).
#
PYTHON_TEST_BOOTSTRAP = yes
%patch% 01-no-pyre-check.patch
%include-3%
# https://www.illumos.org/issues/15767
LD_Z_IGNORE=
@@ -49,5 +40,12 @@
COMPONENT_PRE_TEST_ACTION +=   $(MV) $(@D)/libcst $(@D)/libcst-RENAMED ;
COMPONENT_POST_TEST_ACTION +=   $(MV) $(@D)/libcst-RENAMED $(@D)/libcst ;
# We are unable to detect this dependency automatically
TEST_REQUIRED_PACKAGES.python += library/python/hypothesmith
# Tests in tests/test_fuzz.py require hypothesmith.  We do not have
# hypothesmith package (yet) so we need to disable those tests.
PYTEST_ADDOPTS += --ignore libcst-RENAMED/tests/test_fuzz.py
# https://github.com/Instagram/LibCST/issues/818
PYTEST_ADDOPTS += --ignore libcst-RENAMED/codegen/tests/test_codegen_clean.py
# Remove extra -RENAMED from test report
COMPONENT_TEST_TRANSFORMS += "-e 's/\(libcst\)-RENAMED/\1/g'"