From 8105b9da833060d14b01d504fe971d563138ba38 Mon Sep 17 00:00:00 2001 From: Julien Seguinot <1186928+juseg@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:16:59 +0200 Subject: [PATCH] Bump version (setup, conf, whatsnew) to v0.3.1. (#85) * Support Pandas<2.2.0 in docs. * Add missing items in whatsnew. * Remove deprecated pism_gridded, pism_series. * Bump version (conf, setup, whatsnew) to v0.3.1. * Link to pull request in whatsnew. * Require pandas<2.2.0 (typo) in docs. * Add release description. --- doc/conf.py | 2 +- doc/whatsnew.rst | 20 +++++++++++++++++--- hyoga/demo.py | 18 +----------------- setup.cfg | 4 ++-- 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 5b31b75..03f972d 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -14,7 +14,7 @@ copyright = '2021-2024' author = 'Julien Seguinot' version = '0.3 Cocuy' -release = '0.3.0' +release = '0.3.1' # -- General configuration --------------------------------------------------- diff --git a/doc/whatsnew.rst b/doc/whatsnew.rst index 8cdd55e..20fb445 100644 --- a/doc/whatsnew.rst +++ b/doc/whatsnew.rst @@ -23,14 +23,26 @@ What's new .. _v0.3.1: -v0.3.1 (unreleased) -------------------- +v0.3.1 (10 Jun. 2024) +--------------------- + +This small bug-fix release brings hyoga up-to-date with its dependencies +following an unintended lapse in development. Support was added for recent +versions of Python and cf_xarray_, and other minor bugs were fixed, reviving +the foundation for upcoming improvements and new features in future releases. +Code coverage remains at 67 percent. Breaking changes ~~~~~~~~~~~~~~~~ - Require Python 3.9 or newer (:pull:`78`). +Deprecations +~~~~~~~~~~~~ + +- Remove :func:`hyoga.demo.pism_gridded`, deprecated in v0.1.1_ (:pull:`85`). +- Remove :func:`hyoga.demo.pism_series`, deprecated in v0.1.1_ (:pull:`85`). + Bug fixes ~~~~~~~~~ @@ -43,12 +55,14 @@ Bug fixes Documentation ~~~~~~~~~~~~~ -- Fix build errors, warnings, credits (:issue:`79`, :pull:`80`, :pull:`82`). +- Fix build errors and warnings (:issue:`79`, :pull:`80`). +- Update funding credits (:pull:`80`, :pull:`84`). Internal changes ~~~~~~~~~~~~~~~~ - Test (and support) Python 3.11 and 3.12 (:pull:`77`). +- Upgrade to Python 3.12 on Read the Docs (:pull:`82`). .. _v0.3.0: diff --git a/hyoga/demo.py b/hyoga/demo.py index 3f9a6e1..d4fa2f5 100644 --- a/hyoga/demo.py +++ b/hyoga/demo.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021, Julien Seguinot (juseg.github.io) +# Copyright (c) 2021-2024, Julien Seguinot (juseg.dev) # GNU General Public License v3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) """ @@ -16,19 +16,3 @@ def get(filename='pism.alps.out.2d.nc'): "demo.get() -> url is deprecated and will be removed in v0.4.0, use " "open.example() -> dataset instead", FutureWarning) return _download_example(filename) - - -def pism_gridded(): - """Deprecated alias of get('pism.alps.out.2d.nc').""" - warnings.warn( - "pism_gridded() is deprecated and will be removed in v0.3.0, use " - "get('pism.alps.out.2d.nc') instead", FutureWarning) - return get('pism.alps.out.2d.nc') - - -def pism_series(): - """Deprecated alias of get('pism.alps.out.1d.nc').""" - warnings.warn( - "pism_gridded() is deprecated and will be removed in v0.3.0, use " - "get('pism.alps.out.1d.nc') instead", FutureWarning) - return get('pism.alps.out.1d.nc') diff --git a/setup.cfg b/setup.cfg index 515fcff..c9f65ee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,7 +6,7 @@ [metadata] name = hyoga -version = 0.3.0 +version = 0.3.1 author = Julien Seguinot description = Paleoglacier modelling framework long_description = file: README.rst @@ -35,7 +35,7 @@ python_requires = >=3.9 docs = contextily netcdf4 - pandas<2.0 + pandas<2.2.0 sphinx sphinx-autosummary-accessors sphinx-book-theme>=0.3.3