Skip to content

Commit 326dbe7

Browse files
TomNicholaspre-commit-ci[bot]max-sixtykmuehlbauer
authored
Add FAQ answer about API stability & backwards compatibility (#9855)
* new blank whatsnew * FAQ answer on API stability * link from API docs page * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * whatsnew * Update doc/getting-started-guide/faq.rst Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> * use hyphen in target names --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Co-authored-by: Kai Mühlbauer <kai.muehlbauer@uni-bonn.de>
1 parent 5b3f127 commit 326dbe7

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

doc/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This page provides an auto-generated summary of xarray's API. For more details
1010
and examples, refer to the relevant chapters in the main part of the
1111
documentation.
1212

13-
See also: :ref:`public api`
13+
See also: :ref:`public-api` and :ref:`api-stability`.
1414

1515
Top-level functions
1616
===================

doc/getting-started-guide/faq.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,19 @@ would certainly appreciate it. We recommend two citations.
416416
url = {https://doi.org/10.5281/zenodo.59499}
417417
}
418418

419-
.. _public api:
419+
.. _api-stability:
420+
421+
How stable is Xarray's API?
422+
---------------------------
423+
424+
Xarray tries very hard to maintain backwards compatibility in our :ref:`api` between released versions.
425+
Whilst we do occasionally make breaking changes in order to improve the library,
426+
we `signpost changes <https://docs.xarray.dev/en/stable/contributing.html#backwards-compatibility>`_ with ``DeprecationWarnings`` for many releases in advance.
427+
(An exception is bugs - whose behaviour we try to fix as soon as we notice them.)
428+
Our `test-driven development practices <https://docs.xarray.dev/en/stable/contributing.html#test-driven-development-code-writing>`_ helps to ensure any accidental regressions are caught.
429+
This philosophy applies to everything in the `public API <https://docs.xarray.dev/en/stable/getting-started-guide/faq.html#what-parts-of-xarray-are-considered-public-api>`_.
430+
431+
.. _public-api:
420432

421433
What parts of xarray are considered public API?
422434
-----------------------------------------------

doc/whats-new.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ Documentation
115115
~~~~~~~~~~~~~
116116
- A chapter on :ref:`internals.timecoding` is added to the internal section (:pull:`9618`).
117117
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
118+
- Clarified xarray's policy on API stability in the FAQ. (:issue:`9854`, :pull:`9855`)
119+
By `Tom Nicholas <https://github.com/TomNicholas>`_.
118120

119121
Internal Changes
120122
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)