Skip to content

Commit

Permalink
Ignore hatch/setuptools_scm warning for rhel
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Jan 10, 2024
1 parent f85a078 commit b410b2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/DynamicVersion/test_archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ rlJournalStart
[[ -n "$CMakeExtraUtils_ROOT" ]] && rlRun "base_configure_args=\"\${base_configure_args} -DCMakeExtraUtils_ROOT=\${CMakeExtraUtils_ROOT}\"" 0 "Add CMakeExtraUtils_ROOT"
rlRun "echo '.git_archival.txt export-subst' > .gitattributes" 0 "Configure .gitattributes"
rlRun "set -o pipefail"
rlIsCentOS && rlRun "export PYTHONWARNINGS=\"ignore::RuntimeWarning:setuptools_scm\"" 0 "Workaround for hatch/setuptools_scm issue"
rlPhaseEnd

for mode in DEV POST; do
Expand Down
1 change: 1 addition & 0 deletions test/DynamicVersion/test_fallback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rlJournalStart
rlRun "build_args=\"--build \${build_dir} -v\"" 0 "Set build_args"
[[ -n "$CMakeExtraUtils_ROOT" ]] && rlRun "configure_args=\"\${configure_args} -DCMakeExtraUtils_ROOT=\${CMakeExtraUtils_ROOT}\"" 0 "Add CMakeExtraUtils_ROOT"
rlRun "set -o pipefail"
rlIsCentOS && rlRun "export PYTHONWARNINGS=\"ignore::RuntimeWarning:setuptools_scm\"" 0 "Workaround for hatch/setuptools_scm issue"
rlPhaseEnd

rlPhaseStartTest "Not a git repo and not an archive: Should fail"
Expand Down
1 change: 1 addition & 0 deletions test/DynamicVersion/test_git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rlJournalStart
rlRun "configure_args=\"-B \${build_dir} \${base_configure_args}\" && echo \${configure_args}" 0 "Set temporary configure_args"
rlRun "echo '.git_archival.txt export-subst' > .gitattributes" 0 "Configure .gitattributes"
rlRun "set -o pipefail"
rlIsCentOS && rlRun "export PYTHONWARNINGS=\"ignore::RuntimeWarning:setuptools_scm\"" 0 "Workaround for hatch/setuptools_scm issue"
rlPhaseEnd

rlPhaseStartTest "Not a git repo not an archive: Should fail"
Expand Down

0 comments on commit b410b2f

Please sign in to comment.