Skip to content

Commit

Permalink
CI tweaks to hide parfive (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis authored Jul 8, 2024
1 parent f7df502 commit 66fadd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -61,7 +61,6 @@
suppress_warnings = [
"app.add_directive",
]

extensions = [
"sphinx_design",
"sphinx_gallery.gen_gallery",
Expand Down Expand Up @@ -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",
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66fadd4

Please sign in to comment.