From 66fadd49edf3a2dad6df8ad2d4ac06c95329bbf9 Mon Sep 17 00:00:00 2001 From: Nabil Freij Date: Sun, 7 Jul 2024 21:58:40 -0700 Subject: [PATCH] CI tweaks to hide parfive (#214) --- docs/conf.py | 8 ++++---- tox.ini | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 89182c4e..6fcd72b4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,18 +12,18 @@ from matplotlib import MatplotlibDeprecationWarning from packaging.version import Version from sunpy.util.exceptions import SunpyDeprecationWarning, SunpyPendingDeprecationWarning -from sunpy_sphinx_theme.conf import * # NOQA: F403 +from sunpy_sphinx_theme import PNG_ICON from sunkit_image import __version__ # -- Read the Docs Specific Configuration -------------------------------------- +os.environ["PARFIVE_HIDE_PROGRESS"] = "True" on_rtd = os.environ.get("READTHEDOCS", None) == "True" if on_rtd: os.environ["SUNPY_CONFIGDIR"] = "/home/docs/" os.environ["HOME"] = "/home/docs/" os.environ["LANG"] = "C" os.environ["LC_ALL"] = "C" - os.environ["HIDE_PARFIVE_PROGRESS"] = "True" project = "sunkit_image" author = "The SunPy Community" @@ -61,7 +61,6 @@ suppress_warnings = [ "app.add_directive", ] - extensions = [ "sphinx_design", "sphinx_gallery.gen_gallery", @@ -116,6 +115,7 @@ nitpick_ignore.append((dtype, target)) # -- Options for HTML output --------------------------------------------------- +html_theme = "sunpy" graphviz_output_format = "svg" graphviz_dot_args = [ "-Nfontsize=10", @@ -134,7 +134,7 @@ "filename_pattern": "^((?!skip_).)*$", "examples_dirs": example_dir, "gallery_dirs": path.joinpath("generated", "gallery"), - "default_thumb_file": path.joinpath("logo", "sunpy_icon_128x128.png"), + "default_thumb_file": PNG_ICON, "abort_on_example_error": False, "plot_gallery": "True", "remove_config_comments": True, diff --git a/tox.ini b/tox.ini index b501b830..bb044c4f 100644 --- a/tox.ini +++ b/tox.ini @@ -23,6 +23,7 @@ setenv = COLUMNS = 180 PYTEST_COMMAND = pytest -vvv -r fEs --pyargs sunkit_image --cov-report=xml --cov=sunkit_image --cov-config={toxinidir}/.coveragerc {toxinidir}/docs SUNPY_SAMPLEDIR = {env:SUNPY_SAMPLEDIR:{toxinidir}/.tox/{envname}/sample_data/} + PARFIVE_HIDE_PROGRESS = True deps = devdeps: git+https://github.com/scikit-image/scikit-image.git devdeps: git+https://github.com/sunpy/sunpy.git