Skip to content

Commit 41c4963

Browse files
bikegeekjprestopgeorgemccabe
authored
Updates for coordinated release (#523)
* Update conf.py update version for 3.20 beta1 development * Feature 504 installation files (#511) * Update Orion file for Python 3.12 * Per #504, updating Casper file for Python 3.12 * Per # 504, updating compiler for Orion * Per #504, updating hera file for Python 3.12 * Per #504, updating jet file for Python 3.12 * Feature METplus2857 support (#513) * Making index consistent with other METplus repositories * Initial commit of overview * Bugfix #515 develop - remove deprecated import (#517) * Per #515, remove deprecated import * remove additional unused import to resolve SQ * Update base_plot.py Comment out pio.kaleido.scope.chromium line. Python 3.12 updates with updated deprecations in kaleido will cause some tests to fail due to these warnings. * Updates for coordinated release * Adding modulefile for new machine ursa * Feature 525 update plotly kaleido (for develop/v3.2 release) (#527) * Feature METplus2857 main v3.1 support (#512) * Making index consistent with other METplus repositories * Initial commit of overview * Per #515, remove deprecated import (#516) * Update base_plot.py comment out the pio.kaleido.scope line, this is now causing tests to fail due to kaleido warning for deprecations in September 2025 * Update base_plot.py backing out the latest from pio.kaleido line. WARNING: GHA tests may fail due to upcoming deprecation and warnings that emanate due to Python 3.12 still features that will be deprecated. * Update test_scatter.py Tests pass outside of GHA. Something in GHA is causing issues with Python 3.12 and kaleido (causes AssertionError in kaleido) * Remove soon to be deprecated call to plotly.io.kaleido.scope * Comment out soon-to-be deprecated call to plolty.io.kaleido.scope * add call to install chrome * Add test_* to trigger and setup test to use test_requirements.txt * To test plotly/kaleido updates * Try using kaleido_get_chrome_sync * Update import to use ploty.io._kaleido * Using latest import, invoke the get_chrome() method instead of get_chrome_sync() * explicitly pip install kaleido 1.0 * Add Google Chrome action * fix syntax error * remove - from the run command * Explicitly get the Chrome environment, bypass the calls to plotly.io.kaleido for installing chrome, which already exists * Set up a CHROME_INSTALL path and save it as an environment * remove no-sudo * removed extra line at top of file * move env definition by indenting * Removed all imports that didn't work and the soon to be deprecated reference to kaleido.scope. Running after installing Chrome without setting an ENV variable. * Remove any attempt to set an env * Remove the --version to the path under the chrome installation * Remove skip * Update test_requirements.txt match up with requirements.txt except for kaleido and plotly * Attempt to get chrome via kaleido.get_chrome_sync() * Update unit_tests.yaml Comment out installation of Chrome for now but don't delete it in the event that Chrome will need to be explicitly available. * Update base_plot.py Remove old comment and update to reflect upcoming changes to kaleido * Replace test_requirements.txt with requirements.txt * Update Plotly from 6.0.0 to 6.1.1 and kaleido from 0.2.1 to 1.0.0 --------- Co-authored-by: Julie Prestopnik <jpresto@ucar.edu> Co-authored-by: George McCabe <23407799+georgemccabe@users.noreply.github.com> * Feature 525 update plotly kaleido (#529) * Feature METplus2857 main v3.1 support (#512) * Making index consistent with other METplus repositories * Initial commit of overview * Per #515, remove deprecated import (#516) * Update base_plot.py comment out the pio.kaleido.scope line, this is now causing tests to fail due to kaleido warning for deprecations in September 2025 * Update base_plot.py backing out the latest from pio.kaleido line. WARNING: GHA tests may fail due to upcoming deprecation and warnings that emanate due to Python 3.12 still features that will be deprecated. * Update test_scatter.py Tests pass outside of GHA. Something in GHA is causing issues with Python 3.12 and kaleido (causes AssertionError in kaleido) * Remove soon to be deprecated call to plotly.io.kaleido.scope * Comment out soon-to-be deprecated call to plolty.io.kaleido.scope * add call to install chrome * Add test_* to trigger and setup test to use test_requirements.txt * To test plotly/kaleido updates * Try using kaleido_get_chrome_sync * Update import to use ploty.io._kaleido * Using latest import, invoke the get_chrome() method instead of get_chrome_sync() * explicitly pip install kaleido 1.0 * Add Google Chrome action * fix syntax error * remove - from the run command * Explicitly get the Chrome environment, bypass the calls to plotly.io.kaleido for installing chrome, which already exists * Set up a CHROME_INSTALL path and save it as an environment * remove no-sudo * removed extra line at top of file * move env definition by indenting * Removed all imports that didn't work and the soon to be deprecated reference to kaleido.scope. Running after installing Chrome without setting an ENV variable. * Remove any attempt to set an env * Remove the --version to the path under the chrome installation * Remove skip * Update test_requirements.txt match up with requirements.txt except for kaleido and plotly * Attempt to get chrome via kaleido.get_chrome_sync() * Update unit_tests.yaml Comment out installation of Chrome for now but don't delete it in the event that Chrome will need to be explicitly available. * Update base_plot.py Remove old comment and update to reflect upcoming changes to kaleido * Replace test_requirements.txt with requirements.txt * Update Plotly from 6.0.0 to 6.1.1 and kaleido from 0.2.1 to 1.0.0 * Adding modulefile for new machine ursa * Feature 525 update plotly kaleido (#526) * Update conf.py update version for 3.20 beta1 development * Feature 504 installation files (#511) * Update Orion file for Python 3.12 * Per #504, updating Casper file for Python 3.12 * Per # 504, updating compiler for Orion * Per #504, updating hera file for Python 3.12 * Per #504, updating jet file for Python 3.12 * Feature METplus2857 support (#513) * Making index consistent with other METplus repositories * Initial commit of overview * Bugfix #515 develop - remove deprecated import (#517) * Per #515, remove deprecated import * remove additional unused import to resolve SQ * Update base_plot.py Comment out pio.kaleido.scope.chromium line. Python 3.12 updates with updated deprecations in kaleido will cause some tests to fail due to these warnings. * Remove soon to be deprecated call to plotly.io.kaleido.scope * Comment out soon-to-be deprecated call to plolty.io.kaleido.scope * add call to install chrome * Add test_* to trigger and setup test to use test_requirements.txt * To test plotly/kaleido updates * Try using kaleido_get_chrome_sync * Update import to use ploty.io._kaleido * Using latest import, invoke the get_chrome() method instead of get_chrome_sync() * explicitly pip install kaleido 1.0 * Add Google Chrome action * fix syntax error * remove - from the run command * Explicitly get the Chrome environment, bypass the calls to plotly.io.kaleido for installing chrome, which already exists * Set up a CHROME_INSTALL path and save it as an environment * remove no-sudo * removed extra line at top of file * move env definition by indenting * Removed all imports that didn't work and the soon to be deprecated reference to kaleido.scope. Running after installing Chrome without setting an ENV variable. * Remove any attempt to set an env * Remove the --version to the path under the chrome installation * Remove skip * Update test_requirements.txt match up with requirements.txt except for kaleido and plotly * Attempt to get chrome via kaleido.get_chrome_sync() * Update unit_tests.yaml Comment out installation of Chrome for now but don't delete it in the event that Chrome will need to be explicitly available. * Update base_plot.py Remove old comment and update to reflect upcoming changes to kaleido * Replace test_requirements.txt with requirements.txt * Update Plotly from 6.0.0 to 6.1.1 and kaleido from 0.2.1 to 1.0.0 * Adding modulefile for new machine ursa --------- Co-authored-by: Julie Prestopnik <jpresto@ucar.edu> Co-authored-by: George McCabe <23407799+georgemccabe@users.noreply.github.com> * Added support for env variable to turn on/off invoking the get_chrome_sync() to install Chrome at run-time * test truthiness for booleans rather than string * Update logic for checking PRE_LOAD_CHROME environment variable that is defined in the Dockerfile * Remove print statement * Add check for PRE_LOAD_CHROME env variable set in Dockerfile to turn on/off invoking kaleido.get_chrome_sync() * Updated versions for Plotly and kaleido * Allow logging to stdout and/or file to indicate whether Chrome is getting downloaded at runtime. This facilitates testing for debugging. Setting the PRE_LOAD_CHROME env variable to False (either as bool or string-case is insensitive) will invoke downloading Chrome via Plotly/kaleido. If PRE_LOAD_CHROME is not defined, Chrome will also be downloaded from Plotly/kaleido at run time. Logging can be turned on/off by setting the LOG_BASE_PLOT to true/false (boolean or string) and a log file can be saved by setting the WRITE_LOG env var to true (boolean or string). * Update the runtime loading of Chrome by allowing logging to monitor if Chrome is being downloaded at runtime. Use METplotpy util.py strtobool to replace the distutils.util.strtobool to return a boolean value from the PRE_LOAD_CHROME and logging env vars. * Implement our own version of the deprecated (in Python 3.12+) of distutils.utils.strtobool * Add testing for the strtobool implementation in util.py * Fix import for util strtobool * Forgot to change the args to strtobool to match our implementation * Include the information about impacts of kaleido 1.0.0 changes under the METplotpy Upgrade Instructions * Still one more place to fix the input to strtobool to match our implementation * Refactor to eliminate sonarqube code smell * Remove test code --------- Co-authored-by: Julie Prestopnik <jpresto@ucar.edu> Co-authored-by: George McCabe <23407799+georgemccabe@users.noreply.github.com> * Update release-notes.rst updated the date for release * Update conf.py update date of release * separated the Plotly note from the Python 3.12 note * Modify formatting so link to Plotly site is within note block * reapply different formatting to Notes section for Plotly/kaleido * Fix indentation --------- Co-authored-by: Julie Prestopnik <jpresto@ucar.edu> Co-authored-by: George McCabe <23407799+georgemccabe@users.noreply.github.com>
1 parent 5207e73 commit 41c4963

2 files changed

Lines changed: 11 additions & 49 deletions

File tree

docs/Users_Guide/release-notes.rst

Lines changed: 8 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describes the bugfix, enhancement, or new feature:
77
`METplotpy GitHub issues. <https://github.com/dtcenter/METplotpy/issues>`_
88

99

10-
METplotpy Version 3.1.0-rc1 release notes (20250522)
10+
METplotpy Version 3.1.0 release notes (20250721)
1111
====================================================
1212

1313
.. dropdown:: New Plots
@@ -23,66 +23,28 @@ METplotpy Version 3.1.0-rc1 release notes (20250522)
2323

2424
.. dropdown:: Bugfixes
2525

26-
None
27-
28-
.. dropdown:: Documentation
29-
30-
* Documentation: TCMPR filtering (`#507 <https://github.com/dtcenter/METplotpy/issues/507>`_)
31-
32-
.. dropdown:: Repository, build, and test
33-
34-
None
35-
36-
METplotpy Version 3.1.0-beta2 release notes (20250331)
37-
======================================================
38-
39-
.. dropdown:: New Plots
40-
41-
None
42-
43-
.. dropdown:: Enhancements
44-
45-
None
46-
47-
.. dropdown:: Bugfixes
48-
26+
* Make default configs available in package (`#476 <https://github.com/dtcenter/METplotpy/issues/476>`_)
27+
* Import from metplotpy.contributed instead of relative import (`#478 <https://github.com/dtcenter/METplotpy/issues/478>`_)
4928
* Series names in legend don't get ordered correctly (`#347 <https://github.com/dtcenter/METplotpy/issues/347>`_)
5029
* Support various formats of show_legend values (`#482 <https://github.com/dtcenter/METplotpy/issues/482>`_)
5130
* Reliability Diagram show_legend setting should work with True/False rather than 1/0 values; see bugfix #482 (`#455 <https://github.com/dtcenter/METplotpy/issues/455>`_)
5231
* Better handling of determining min and max for confidence limits when data contains NaN values (`#494 <https://github.com/dtcenter/METplotpy/issues/494>`_)
5332
* Plotly line plots are plotting confidence limit bars at zero with zero length error bars (`#495 <https://github.com/dtcenter/METplotpy/issues/495>`_)
5433

34+
35+
5536
.. dropdown:: Documentation
5637

5738
* Enhance METplotpy User's Guide Installation Instructions (`#457 <https://github.com/dtcenter/METplotpy/issues/457>`_)
5839
* Provide more background information on the Taylor Diagram (`#435 <https://github.com/dtcenter/METplotpy/issues/435>`_)
5940
* Enhance the Table of Contents to include all METplus components (`#499 <https://github.com/dtcenter/METplotpy/pull/499>`_)
41+
* Documentation: TCMPR filtering (`#507 <https://github.com/dtcenter/METplotpy/issues/507>`_)
6042

6143
.. dropdown:: Repository, build, and test
6244

6345
* Update infrastructure to reflect move to developing with Python 3.12 (`#496 <https://github.com/dtcenter/METplotpy/pull/496>`_)
6446
* Update modulefiles used on various machines (`#488 <https://github.com/dtcenter/METplotpy/issues/488>`_)
6547

66-
METplotpy Version 3.1.0-beta1 release notes (20250123)
67-
======================================================
68-
69-
.. dropdown:: New Plots
70-
71-
None
72-
73-
.. dropdown:: Enhancements
74-
75-
None
76-
77-
.. dropdown:: Bugfixes
78-
79-
* Make default configs available in package (`#476 <https://github.com/dtcenter/METplotpy/issues/476>`_)
80-
* Import from metplotpy.contributed instead of relative import (`#478 <https://github.com/dtcenter/METplotpy/issues/478>`_)
81-
82-
.. dropdown:: Documentation
83-
84-
None
85-
8648

8749
METplotpy Upgrade Instructions
8850
==============================
@@ -93,13 +55,13 @@ METplotpy Upgrade Instructions
9355
development with Python 3.12. View the requirements.txt/nco_requirements.txt file at the top
9456
level of the repository for version numbers for the corresponding third-party packages.
9557

58+
.. note::
9659

9760
In June 2025, Plotly made significant updates to the kaleido package with the 1.0.0
9861
release by removing Google Chrome code. Now, users will need to have Google Chrome
9962
installed in directories specified in this Plotly documentation (based on operating
10063
system):
101-
102-
https://plotly.com/python/static-image-export/
64+
https://plotly.com/python/static-image-export/
10365

10466
The METplotpy code downloads Chrome at runtime by invoking the kaleido.get_chrome_sync()
10567
method call.

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
project = 'METplotpy'
2525
copyright = '2025, NSF NCAR'
2626
author = 'UCAR/NSF NCAR, NOAA, CSU/CIRA, and CU/CIRES'
27-
author_list = 'Fisher, H., D. Adriaansen, C. Kalb, D. Fillmore, T. Jensen, L. Goodrich, M. Win-Gildenmeister and T. Burek'
28-
version = '3.2.0-beta1-dev'
27+
author_list = 'Adriaansen, D., C. Kalb, D. Fillmore, T. Jensen, L. Goodrich, M. Win-Gildenmeister, T. Burek, and H. Fisher'
28+
version = '3.1.0'
2929
verinfo = version
3030
release = f'{version}'
3131
release_year = '2025'
3232

33-
release_date = f'{release_year}-05-22'
33+
release_date = f'{release_year}-07-21'
3434

3535
copyright = f'{release_year}, {author}'
3636

0 commit comments

Comments
 (0)