Skip to content

Commit 1cfd369

Browse files
Bump to v0.7.3 (#712)
1 parent b1a72fc commit 1cfd369

File tree

7 files changed

+105
-51
lines changed

7 files changed

+105
-51
lines changed

HISTORY.rst

+39-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22
History
33
=======
44

5+
v0.7.3 (06 November 2024)
6+
-------------------------
7+
8+
This patch release updates the NumPy constraint to ``numpy >=2.0.0,<3.0.0`` to ensure
9+
compatibility with NumPy 2.0 (which introduces breaking changes). It also fixes a bug
10+
in the ``get_bounds()`` method where bounds could not be found on supported non-CF axes
11+
(e.g., "latitude", "longitude", etc.) even with the ``"bounds"`` attribute set on the
12+
axes.
13+
14+
Bug Fixes
15+
~~~~~~~~~
16+
17+
- Update ``get_bounds()`` to support mappable non-CF axes using ``"bounds"`` attr by
18+
`Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/708
19+
20+
Documentation
21+
~~~~~~~~~~~~~
22+
23+
- Add link to SciPy talk in docs by `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/704
24+
25+
DevOps
26+
~~~~~~~~~~~~
27+
28+
- Adopt ``ruff`` as the central tool for linting, formatting, and import
29+
sorting by `Tom Vo`_ in https://github.com/xCDAT/xcdat/pull/702
30+
- Update numpy constraint to ``>=2.0.0,<3.0.0`` by `Tom Vo`_ and `Xylar Asay-Davis`_ in
31+
https://github.com/xCDAT/xcdat/pull/711,
32+
https://github.com/xCDAT/xcdat/pull/712
33+
- Replace ``setup.py`` with ``pyproject.toml`` for modern Python packaging by
34+
`Tom Vo`_ and `Xylar Asay-Davis`_ in https://github.com/xCDAT/xcdat/pull/712
35+
36+
**Full Changelog**: https://github.com/xCDAT/xcdat/compare/v0.7.2...v0.7.3
37+
38+
539
v0.7.2 (02 October 2024)
640
------------------------
741

@@ -65,10 +99,10 @@ notebooks and documentation are up to date with the latest and relevant informat
6599
Bug Fixes
66100
~~~~~~~~~
67101

68-
- Fixes regrid2 mapping output to input ordering by `Jason Boutte`_
69-
in https://github.com/xCDAT/xcdat/pull/653
70-
- Update ``add_missing_bounds()`` to convert ``np.timedelta64`` to ``pd.Timedelta``
71-
to support Xarray's datetime component accessor `_Jiwoo Lee` in https://github.com/xCDAT/xcdat/pull/660
102+
- Fixes regrid2 mapping output to input ordering by `Jason Boutte`_
103+
in https://github.com/xCDAT/xcdat/pull/653
104+
- Update ``add_missing_bounds()`` to convert ``np.timedelta64`` to ``pd.Timedelta``
105+
to support Xarray's datetime component accessor `_Jiwoo Lee` in https://github.com/xCDAT/xcdat/pull/660
72106

73107
Documentation
74108
~~~~~~~~~~~~~
@@ -805,3 +839,4 @@ DevOps
805839
.. _Jill Chengzhu Zhang: https://github.com/chengzhuzhang
806840
.. _Paul Durack: https://github.com/durack1
807841
.. _Ana Ordonez: https://github.com/acordonez
842+
.. _Xylar Asay-Davis: https://github.com/xylar

conda-env/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- cftime
1212
- dask
1313
- netcdf4
14-
- numpy >=2.0.0,<=3.0.0
14+
- numpy >=2.0.0,<3.0.0
1515
- pandas
1616
- python-dateutil
1717
- xarray >=2024.03.0

conda-env/dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- cftime
1212
- dask
1313
- netcdf4
14-
- numpy >=2.0.0,<=3.0.0
14+
- numpy >=2.0.0,<3.0.0
1515
- pandas
1616
- python-dateutil
1717
- xarray >=2024.03.0

pyproject.toml

+62
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "xcdat"
7+
dynamic = ["version"]
8+
description = "Xarray Climate Data Analysis Tools"
9+
readme = "README.rst"
10+
requires-python = ">=3.9"
11+
license = { text = "Apache-2.0" }
12+
authors = [{ name = "xCDAT developers" }]
13+
classifiers = [
14+
"Development Status :: 5 - Production/Stable",
15+
"Intended Audience :: Developers",
16+
"License :: OSI Approved :: Apache-2.0 License",
17+
"Natural Language :: English",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
]
24+
keywords = ["xcdat"]
25+
dependencies = [
26+
"cf_xarray >=0.9.1",
27+
"cftime",
28+
"dask",
29+
"netcdf4",
30+
"numpy >=2.0.0,<3.0.0",
31+
"pandas",
32+
"python-dateutil",
33+
"xarray >=2024.03.0",
34+
"xesmf >=0.8.7",
35+
"xgcm",
36+
]
37+
38+
[project.urls]
39+
Documentation = "https://xcdat.readthedocs.io/en/latest/getting-started-guide/overview.html"
40+
"Issue Tracker" = "https://github.com/xCDAT/xcdat/issues"
41+
42+
[project.optional-dependencies]
43+
test = ["pytest", "pytest-cov"]
44+
docs = [
45+
"sphinx",
46+
"sphinx-autosummary-accessors",
47+
"sphinx-book-theme",
48+
"sphinx-copybutton",
49+
"nbsphinx",
50+
"sphinx-design",
51+
"pandoc",
52+
"ipython",
53+
"gsw-xarray",
54+
]
55+
dev = ["types-python-dateutil", "pre-commit", "ruff", "mypy"]
56+
57+
[tool.setuptools.packages.find]
58+
include = ["xcdat", "xcdat.*"]
59+
60+
[tool.setuptools.dynamic]
61+
version = { attr = "xcdat.__version__" }
62+
163
[tool.ruff]
264
# Exclude a variety of commonly ignored directories.
365
exclude = [

setup.py

-41
This file was deleted.

tbump.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
github_url = "https://github.com/xCDAT/xcdat"
33

44
[version]
5-
current = "0.7.2"
5+
current = "0.7.3"
66

77
# Example of a semver regexp.
88
# Make sure this matches current_version before
@@ -21,8 +21,6 @@ tag_template = "v{new_version}"
2121
# section containing the path of the file, relative to the
2222
# tbump.toml location.
2323
[[file]]
24-
src = "setup.py"
25-
[[file]]
2624
src = "xcdat/__init__.py"
2725

2826
# You can specify a list of commands to

xcdat/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
from xcdat.temporal import TemporalAccessor # noqa: F401
2222
from xcdat.utils import compare_datasets # noqa: F401
2323

24-
__version__ = "0.7.2"
24+
__version__ = "0.7.3"

0 commit comments

Comments
 (0)