Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix check_links on macOS #282

Merged
merged 2 commits into from
Apr 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion jupyter_releaser/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os.path as osp
import re
import shutil
import sys
import uuid
from datetime import datetime
from glob import glob
Expand Down Expand Up @@ -48,7 +49,8 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
"""Check URLs for HTML-containing files."""
cache_dir = osp.expanduser(cache_file).replace(os.sep, "/")
os.makedirs(cache_dir, exist_ok=True)
cmd = "pytest --noconftest --check-links --check-links-cache "
python = sys.executable.replace(os.sep, "/")
cmd = f"{python} -m pytest --noconftest --check-links --check-links-cache "
cmd += f"--check-links-cache-expire-after {links_expire} "
cmd += "--disable-warnings --quiet "
cmd += f"--check-links-cache-name {cache_dir}/check-release-links "
Expand Down