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

Add the xhydro recipe #27831

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from all 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
78 changes: 78 additions & 0 deletions recipes/xhydro/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{% set name = "xhydro" %}
{% set version = "0.4.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/xhydro-{{ version }}.tar.gz
sha256: 4ce251bf3b95b1dc60ae68f698852609b71e2c023c19cbae3d9e63b6943eae51

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0

requirements:
host:
- python >=3.10.0
- flit-core >=3.9,<4
- pip
run:
- python >=3.10.0
- cartopy
- geopandas
- haversine
- importlib-metadata <8.0 # Required for xesmf >=8.4.0,<8.6 to work on Windows
- leafmap
- numpy <2.0.0
- pandas >=2.2.0
- planetary-computer
- pooch >=1.8.0
- pydantic >=2.0,<2.5.3
- pystac
- pystac-client
- pyyaml
- rasterio <=1.3.11 # Temporary pin until https://github.com/xarray-contrib/xvec/issues/85 is addressed.
- ravenpy >=0.15.0
- rioxarray
- spotpy
- stackstac >=0.5.1
- statsmodels
- tqdm
- xarray >=2023.11.0
- xarray-spatial
- xclim >=0.48.2
- xdatasets >=0.3.6
- xscen >=0.8.3
- xvec

test:
imports:
- xhydro
commands:
# - pip check # PyCRS gives a false positive here
- pytest tests
requires:
- pip
- lmoments3 # needed for test_regional.py
- pytest >=8.3.2
source_files:
- CHANGELOG.rst
- tests

about:
home: https://github.com/hydrologie/xdatasets
license: Apache-2.0
license_family: Apache
license_file: LICENSE
summary: Hydrological analysis library built with xarray.
dev_url: https://github.com/hydrologie/xhydro
doc_url: https://xhydro.readthedocs.io

extra:
recipe-maintainers:
- RondeauG
- sebastienlanglois
- Zeitsperre
Loading