Skip to content

Commit 6d17fa0

Browse files
authored
adjust the deprecation policy for python (#7793)
* extend the policy interval for python to 30 months * extend the hard-coded list of python release dates * changelog
1 parent 979b998 commit 6d17fa0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

ci/min_deps_check.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"pytest-timeout",
3030
}
3131

32-
POLICY_MONTHS = {"python": 24, "numpy": 18}
32+
POLICY_MONTHS = {"python": 30, "numpy": 18}
3333
POLICY_MONTHS_DEFAULT = 12
3434
POLICY_OVERRIDE: dict[str, tuple[int, int]] = {}
3535
errors = []
@@ -109,6 +109,9 @@ def metadata(entry):
109109
(3, 6): datetime(2016, 12, 23),
110110
(3, 7): datetime(2018, 6, 27),
111111
(3, 8): datetime(2019, 10, 14),
112+
(3, 9): datetime(2020, 10, 5),
113+
(3, 10): datetime(2021, 10, 4),
114+
(3, 11): datetime(2022, 10, 24),
112115
}
113116
)
114117

doc/getting-started-guide/installing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Minimum dependency versions
8686
Xarray adopts a rolling policy regarding the minimum supported version of its
8787
dependencies:
8888

89-
- **Python:** 24 months
89+
- **Python:** 30 months
9090
(`NEP-29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`_)
9191
- **numpy:** 18 months
9292
(`NEP-29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`_)

doc/whats-new.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ New Features
3131

3232
Breaking changes
3333
~~~~~~~~~~~~~~~~
34-
34+
- adjust the deprecation policy for python to once again align with NEP-29 (:issue:`7765`, :pull:`7793`)
35+
By `Justus Magin <https://github.com/keewis>`_.
3536

3637
Deprecations
3738
~~~~~~~~~~~~

0 commit comments

Comments
 (0)