Skip to content

Commit 79099cf

Browse files
itholicHyukjinKwon
authored andcommitted
[SPARK-38279][TESTS][3.2] Pin MarkupSafe to 2.0.1 fix linter failure
### What changes were proposed in this pull request? This PR proposes to pin the Python package `markupsafe` to 2.0.1 to fix the CI failure as below. ``` ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/runner/work/_temp/setup-sam-43osIE/.venv/lib/python3.10/site-packages/markupsafe/__init__.py) ``` Since `markupsafe==2.1.0` has removed `soft_unicode`, `from markupsafe import soft_unicode` no longer working properly. See aws/aws-sam-cli#3661 for more detail. ### Why are the changes needed? To fix the CI failure on branch-3.2 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? The existing tests are should be passed Closes #35602 from itholic/SPARK-38279. Authored-by: itholic <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent fb5d83b commit 79099cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build_and_test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ jobs:
394394
# See also https://github.com/sphinx-doc/sphinx/issues/7551.
395395
# Jinja2 3.0.0+ causes error when building with Sphinx.
396396
# See also https://issues.apache.org/jira/browse/SPARK-35375.
397-
python3.9 -m pip install 'sphinx<3.1.0' mkdocs numpy pydata_sphinx_theme ipython nbsphinx numpydoc 'jinja2<3.0.0'
397+
# Pin the MarkupSafe to 2.0.1 to resolve the CI error.
398+
# See also https://issues.apache.org/jira/browse/SPARK-38279.
399+
python3.9 -m pip install 'sphinx<3.1.0' mkdocs numpy pydata_sphinx_theme ipython nbsphinx numpydoc 'jinja2<3.0.0' 'markupsafe==2.0.1'
398400
python3.9 -m pip install sphinx_plotly_directive 'pyarrow<5.0.0' pandas 'plotly>=4.8'
399401
apt-get update -y
400402
apt-get install -y ruby ruby-dev

0 commit comments

Comments
 (0)