From 45f53f72804898af13699a93f1b27891e607e6f7 Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:00:27 -0700 Subject: [PATCH 1/4] merged commit to get verison number from version file in docs config file --- docs/conf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 90a66609..d90a9f22 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,8 +13,11 @@ import os import sys sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), + os.pardir))) print(sys.path) +from metplotpy import __version__ as version # -- Project information ----------------------------------------------------- @@ -22,7 +25,7 @@ copyright = '2024, NSF NCAR' author = 'UCAR/NSF NCAR, NOAA, CSU/CIRA, and CU/CIRES' author_list = 'Fisher, H., D. Adriaansen, C. Kalb, D. Fillmore, T. Jensen, L. Goodrich, M. Win-Gildenmeister and T. Burek' -version = 'v3.0.0-rc1' + verinfo = version release = f'{version}' release_year = '2024' From a39381cc2000e110efe571574bd6a65a05541d48 Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:48:52 -0700 Subject: [PATCH 2/4] per #475, add default config files to python package --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index f8bf649d..70d86836 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,11 @@ version = {attr = "metplotpy.__version__"} [tool.setuptools.packages] find = {include = ["metplotpy*"]} +[tool.setuptools.package-data] +metplotpy = [ + "plots/config/**", +] + [tool.pytest.ini_options] testpaths = ["test"] From ae4f26746d81321ec3a6d765c6e485171a59b82e Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:53:18 -0700 Subject: [PATCH 3/4] update version number for development towards beta1 of 3.1.0 --- metplotpy/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metplotpy/_version.py b/metplotpy/_version.py index 16bcea84..e749bd8c 100644 --- a/metplotpy/_version.py +++ b/metplotpy/_version.py @@ -1 +1 @@ -__version__ = "3.0.0-beta6-dev" +__version__ = "3.1.0-beta1-dev" From ccdfe95d3234907ef70cde4731b0e449de7e80e1 Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Wed, 20 Nov 2024 09:24:47 -0700 Subject: [PATCH 4/4] prevent GPU failure running in containers by running kaleido with single process option --- metplotpy/plots/base_plot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metplotpy/plots/base_plot.py b/metplotpy/plots/base_plot.py index de0458a2..4897c0f0 100644 --- a/metplotpy/plots/base_plot.py +++ b/metplotpy/plots/base_plot.py @@ -21,11 +21,14 @@ import yaml from typing import Union +import plotly.io as pio + import metplotpy.plots.util from .config import Config from metplotpy.plots.context_filter import ContextFilter - +# set kaleido to use single process to prevent GPU errors in containers +pio.kaleido.scope.chromium_args += ("--single-process",) class BasePlot: """A class that provides methods for building Plotly plot's common features