@@ -4,17 +4,64 @@ Stability policy and LTS commitment
44===================================
55
66This page states which parts of xarray-spatial are covered by long-term
7- support (LTS) in the 1.0.0 series, and what "stable" means here.
7+ support (LTS) in the 1.x series, how deprecations work, and what "stable"
8+ means here.
9+
10+ Versioning
11+ ----------
12+
13+ xarray-spatial follows semantic versioning from 1.0.0 on.
14+
15+ - Patch releases (1.0.1, 1.0.2, ...) fix bugs and do not change behaviour
16+ for documented inputs.
17+ - Minor releases (1.1.0, 1.2.0, ...) may add functions, add optional keyword
18+ arguments, promote a function to a higher tier, raise a dependency floor,
19+ and deprecate names. They do not remove or rename anything on the LTS
20+ surface.
21+ - Major releases (2.0.0) are the only place where deprecated names are
22+ removed or where a documented contract changes incompatibly.
823
924What LTS covers
1025---------------
1126
12- The high-level public spellings are the LTS surface: the names exported from
13- ``xrspatial/__init__.py `` and the ``.xrs `` accessor on
14- ``xarray.DataArray `` and ``xarray.Dataset ``. Within the 1.0.x series these
15- names, their call signatures, and their documented return contracts do not
16- change in backward-incompatible ways. New optional keyword arguments may be
17- added; existing behavior for documented inputs is preserved.
27+ The high-level public spellings are the LTS surface:
28+
29+ - every name listed in ``xrspatial.__all__ `` (the names you get from
30+ ``import xrspatial ``),
31+ - the public names of the ``xrspatial.mcda `` subpackage,
32+ - the ``.xrs `` accessor on ``xarray.DataArray `` and ``xarray.Dataset `` (see
33+ :ref: `reference.accessor `).
34+
35+ For the whole 1.x series these names, their call signatures, and their
36+ documented return contracts do not change in backward-incompatible ways.
37+ New optional keyword arguments may be added; existing behaviour for
38+ documented inputs is preserved.
39+
40+ Functions that live only in a submodule (for example
41+ ``xrspatial.experimental.min_observable_height ``) and anything with a leading
42+ underscore are not part of the LTS surface and may change in a minor release.
43+
44+ Deprecation window
45+ ------------------
46+
47+ When a name or keyword argument on the LTS surface is replaced:
48+
49+ 1. The old spelling keeps working and emits a ``DeprecationWarning `` that
50+ names the replacement and the release that will remove it.
51+ 2. The warning ships in at least one minor release before removal.
52+ 3. Removal happens in the next major release, never in a minor or patch.
53+
54+ The 0.x aliases that 1.0.0 removed are listed on the
55+ :ref: `migration_1_0 ` page.
56+
57+ Dependencies
58+ ------------
59+
60+ The minimum supported Python and dependency versions are the ones pinned in
61+ the ``min-deps `` job of the test workflow. Raising a floor is a minor-release
62+ change and is called out in the changelog. The package declares an upper
63+ bound on NumPy only; new NumPy minors are tested and the bound lifted in a
64+ patch or minor release.
1865
1966What "stable" requires
2067----------------------
@@ -34,3 +81,11 @@ Tiers below stable
3481caveats or make no cross-backend parity claim. GPU and some Dask paths
3582usually stay at these tiers. The README feature matrix is the per-backend
3683source of truth for each function's tier.
84+
85+ Changing a tier
86+ ---------------
87+
88+ A tier moves in a pull request that edits the README matrix cell and states
89+ the reason. Promotion can happen in any release. Demoting a cell from
90+ ``stable `` is an incompatible contract change and waits for a major release;
91+ until then the behaviour stays and the caveat goes in the docs.
0 commit comments