Skip to content

Commit 743b8b5

Browse files
authored
Merge branch 'main' into varlen_tutorial
2 parents 674a813 + 10eefc3 commit 743b8b5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.jenkins/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ sudo apt-get install -y pandoc
2222
# Install PyTorch Nightly for test.
2323
if [ "${USE_NIGHTLY:-0}" -eq 1 ]; then
2424
sudo pip uninstall -y torch torchvision torchaudio
25-
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu130
25+
pip3 install torch==2.10.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu130
2626
pip show torch
2727
fi
2828

conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,9 @@ def wrapper(*args, **kwargs):
263263
# ignore_pattern also skips parsing.
264264
# See https://github.com/sphinx-gallery/sphinx-gallery/issues/721
265265
# for a more detailed description of the issue.
266+
# GALLERY_PATTERN should be a regular expression.
266267
sphinx_gallery_conf["ignore_pattern"] = (
267-
r"/(?!" + re.escape(os.getenv("GALLERY_PATTERN")) + r")[^/]+$"
268+
r"^(?!.*" + os.getenv("GALLERY_PATTERN") + r")"
268269
)
269270

270271
for i in range(len(sphinx_gallery_conf["examples_dirs"])):

0 commit comments

Comments
 (0)