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

Bugfix #475 develop - make default configs available in package #476

Merged
merged 4 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@
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 -----------------------------------------------------

project = 'METplotpy'
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'
Expand Down
2 changes: 1 addition & 1 deletion metplotpy/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.0.0-beta6-dev"
__version__ = "3.1.0-beta1-dev"
5 changes: 4 additions & 1 deletion metplotpy/plots/base_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
Loading