Skip to content

Commit 26f6f0d

Browse files
authored
Prepare v0.54.0 (#2016)
### What kind of change does this PR introduce? * Prepares the next minor version (v0.54.0) for today (2024-12-12) ### Does this PR introduce a breaking change? No.
2 parents b567de8 + 39d7335 commit 26f6f0d

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

CHANGELOG.rst

+10-13
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,38 @@
22
Changelog
33
=========
44

5-
v0.54.0 (unreleased)
5+
v0.54.0 (2024-12-16)
66
--------------------
77
Contributors to this version: Trevor James Smith (:user:`Zeitsperre`), Pascal Bourgault (:user:`aulemahal`), Éric Dupuis (:user:`coxipi`), Sascha Hofmann (:user:`saschahofmann`).
88

99
New features and enhancements
1010
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1111
* Python 3.9 coding conventions have been dropped in favour of Python 3.10+ conventions. (:pull:`1988`).
12+
* ``xclim.indices.chill_unit`` now accepts a new argument ``positive_only`` to compute the daily positive chill units. (:pull:`2003`).
1213

1314
Breaking changes
1415
^^^^^^^^^^^^^^^^
1516
* The minimum required version of `dask` has been increased to `2024.8.1`. (:issue:`1992`, :pull:`1991`).
1617
* The docstrings of many `xclim` modules, classes, methods, and functions have been slightly adjusted to ensure stricter compliance with established `numpy` docstring conventions. (:pull:`1988`).
18+
* Using different time for ``ref`` and ``hist`` is now explicitly forbidden in many bias adjustment methods (e.g. `EmpiricalQuantileMapping`). Methods that combine ``ref``, ``hist``, and ``sim`` in the same `map_groups` also require that time arrays be equal in size. (:issue:`1903`, :pull:`1995`, :pull:`2013`).
19+
* `xclim` now uses a `src` layout for the codebase. Structure-dependent functions, documentation, and build commands have been adapted to reflect these changes. Developers will need to reinstall `xclim` using ``pip install -e .``. (:pull:`1971`).
1720
* The call signature of ``xclim.indices.hot_spell_magnitude`` originally asked for an `op` argument that was not used. This argument has been removed. (:pull:`2018`).
1821

1922
Bug fixes
2023
^^^^^^^^^
2124
* Fixed pickling issue with ``xclim.sdba.Grouper`` and other classes for usage with `dask>=2024.11`. (:issue:`1992`, :pull:`1993`).
2225
* Fixed an issue with ``nimbus`` that was causing URL path components to be improperly joined. (:pull:`1997`).
23-
* `base_kws_vars` in `MBCn` is now copied inside the `adjust` function so that in-place changes do not change the dict globally. (:pull:`1999`).
24-
* Fixed a bug in the logic of ``xclim.testing.utils.load_registry`` that impacted the ability to load a `registry.txt` from a non-default repository. (:pull:`2001`).
26+
* ``base_kws_vars`` in `MBCn` is now copied inside the `adjust` function so that in-place changes do not change the dict globally. (:pull:`1999`).
27+
* Fixed a bug in the logic of ``xclim.testing.utils.load_registry`` that impacted the ability to load a ``registry.txt`` from a non-default repository. (:pull:`2001`).
2528

2629
Internal changes
2730
^^^^^^^^^^^^^^^^
28-
* Changed french translations with word "pluvieux" to "avec précipitations". (:issue:`1960`, :pull:`1994`).
29-
* Using different time for `ref` and `hist` is now explicitly forbidden in many bias adjustment methods (e.g. `EmpiricalQuantileMapping`). Methods that combine `ref,hist,sim` in a same `map_groups` also require the time arrays to be equal in size. (:issue:`1903`, :pull:`1995`, :pull:`2013`)
30-
* Nans in `OTC` and `dOTC` are only dropped and put back in place at the lowest level so that the size of time array never changes on xarray levels. (:pull:`1995`, :pull:`2013`)
31-
* `streamflow` entry replaced with `q` in ``variables.yml``. (:issue:`1912`, :pull:`1996`)
32-
* In order to address 403 (forbidden) request errors when retrieving data from GitHub via ReadTheDocs, the ``nimbus`` class has been modified to use an overloaded `fetch` method that appends a User-Agent header to the request. (:pull:`2001`).
31+
* Changed French translations with word "pluvieux" to "avec précipitations". (:issue:`1960`, :pull:`1994`).
32+
* Nan values in `OTC` and `dOTC` are only dropped and replaced at the lowest level so that the size of time arrays never changes on `xarray` levels. (:pull:`1995`, :pull:`2013`)
33+
* `streamflow` entry replaced with ``"q"`` in ``variables.yml``. (:issue:`1912`, :pull:`1996`).
34+
* In order to address ``Error 403`` (forbidden) requests when retrieving data from GitHub via ReadTheDocs, the ``nimbus`` class has been modified to use an overloaded `fetch` method that appends a modified User-Agent header to the request. (:pull:`2001`).
3335
* Addressed a very rare race condition that can happen if `pytest` is tearing down the test environment when running across multiple workers. (:pull:`1863`).
3436
* The `numpydoc` linting tool has been added to the development dependencies, linting checks, and the `pre-commit` configuration. (:pull:`1988`).
35-
* `xclim` now uses a `src` layout for the codebase. Structure-dependent functions, documentation, and build commands have been adapted to reflect these changes. (:pull:`1971`).
3637
* Added a more robust `yamllint` configuration to ensure that all YAML files are linted consistently. (:pull:`1971`).
3738
* Addressed a very rare singular matrix error that can happen in ``test_loess_smoothing_nan``. (:pull:`2015`).
3839
* Addressed a handful of typing and call signature issues in the `xclim` codebase. (:pull:`2018`).
@@ -44,10 +45,6 @@ CI changes
4445
* Simplified the `bump-version.yml` version string parsing to harden against template injection.
4546
* Further de-escalated privileges for most workflows.
4647

47-
New features and enhancements
48-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49-
* ``chill_unit`` now accepts a new argument `positive_only` to compute the daily positive chill units. (:pull:`2003`).
50-
5148
v0.53.2 (2024-10-31)
5249
--------------------
5350
Contributors to this version: Éric Dupuis (:user:`coxipi`), Pascal Bourgault (:user:`aulemahal`), Trevor James Smith (:user:`Zeitsperre`).

README.rst

+7-6
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,13 @@ However, xclim will *always* assume the temporal coordinate is named "time". If
7474
7575
ds = ds.rename(T="time")
7676
77+
`xclim` code uses the `black`_ formatter, a modified `ruff`_ linting configuration, and (mostly) adheres to the `NumPy docstring`_ style. For more information on coding and development conventions, see the `Contributing Guidelines`_.
78+
79+
.. _black: https://black.readthedocs.io/en/stable/
80+
.. _ruff: https://docs.astral.sh/ruff/
7781
.. _CF Conventions: http://cfconventions.org/
7882
.. _CMIP6: https://clipc-services.ceda.ac.uk/dreq/mipVars.html
83+
.. _NumPy docstring: https://numpydoc.readthedocs.io/en/stable/format.html
7984

8085
Contributing to xclim
8186
---------------------
@@ -132,10 +137,6 @@ This package was created with Cookiecutter_ and the `audreyfeldroy/cookiecutter-
132137
:target: https://github.com/Ouranosinc/xclim/discussions
133138
:alt: Static Badge
134139

135-
.. |gitter| image:: https://badges.gitter.im/Ouranosinc/xclim.svg
136-
:target: https://gitter.im/Ouranosinc/xclim?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
137-
:alt: Gitter Chat
138-
139140
.. |build| image:: https://github.com/Ouranosinc/xclim/actions/workflows/main.yml/badge.svg
140141
:target: https://github.com/Ouranosinc/xclim/actions/workflows/main.yml
141142
:alt: Build Status
@@ -204,8 +205,8 @@ This package was created with Cookiecutter_ and the `audreyfeldroy/cookiecutter-
204205
:alt: pre-commit.ci status
205206

206207
.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
207-
:target: https://github.com/astral-sh/ruff
208-
:alt: Ruff
208+
:target: https://github.com/astral-sh/ruff
209+
:alt: Ruff
209210

210211
.. |status| image:: https://www.repostatus.org/badges/latest/active.svg
211212
:target: https://www.repostatus.org/#active

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ xclim = "xclim.cli:cli"
124124
"Source" = "https://github.com/Ouranosinc/xclim/"
125125
"Changelog" = "https://xclim.readthedocs.io/en/stable/history.html"
126126
"Issue tracker" = "https://github.com/Ouranosinc/xclim/issues"
127+
"Mastodon" = "https://fosstodon.org/@xclim"
128+
"Zenodo" = "https://doi.org/10.5281/zenodo.2795043"
127129
"About Ouranos" = "https://www.ouranos.ca/en/"
128130

129131
[tool]
@@ -136,9 +138,9 @@ target-version = [
136138
]
137139

138140
[tool.bumpversion]
139-
current_version = "0.53.3-dev.17"
141+
current_version = "0.54.0-dev.0"
140142
commit = true
141-
commit_args = "--no-verify"
143+
commit_args = "--no-verify --signoff"
142144
tag = false
143145
allow_dirty = false
144146
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\-(?P<release>[a-z]+)(\\.(?P<build>\\d+)))?"

src/xclim/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
__author__ = """Travis Logan"""
1515
__email__ = "logan.travis@ouranos.ca"
16-
__version__ = "0.53.3-dev.17"
16+
__version__ = "0.54.0-dev.0"
1717

1818

1919
with _resources.as_file(_resources.files("xclim.data")) as _module_data:

0 commit comments

Comments
 (0)