Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch both xarray and erddapy for pandas 2.0 #426

Merged
merged 4 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions recipe/gen_patch_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import tqdm
import re
import requests
import packaging.version
import pkg_resources

from get_license_family import get_license_family
Expand Down Expand Up @@ -1594,6 +1595,16 @@ def _gen_new_index_per_key(repodata, subdir, index_key):
if record_name == "xarray" and record["version"] == "0.19.0":
_replace_pin("python >=3.6", "python >=3.7", deps, record)

# Xarray <=2023.1.0 doesn't support pandas 2.0 yet.
# https://github.com/pydata/xarray/issues/7716
if record_name == "xarray" and packaging.version.Version(record["version"]) < packaging.version.Version("2023.3.0"):
ocefpaf marked this conversation as resolved.
Show resolved Hide resolved
_replace_pin("pandas >=1.3", "pandas >=1.3,<2", deps, record)

# erddapy doesn't support pandas 2.0 yet.
# https://github.com/ioos/erddapy/issues/299
if record_name == "erddapy" and packaging.version.Version(record["version"]) < packaging.version.Version("1.3"):
_replace_pin("pandas >=0.20.3", "pandas >=0.20.3,<2", deps, record)

# Rioxarray 0.14.0 dropped Python 3.8 and rasterio 1.1, need to patch
# first build to use a minimum of Python 3.9 and rasterio 1.2
# See https://github.com/conda-forge/rioxarray-feedstock/pull/70
Expand Down
1 change: 1 addition & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ requirements:
- requests
- tqdm
- license-expression
- packaging
host:
run:

Expand Down