diff --git a/README.md b/README.md index 5aa6b81..807054b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -About xarray-feedstock -====================== +About xarray-suite-feedstock +============================ Feedstock license: [BSD-3-Clause](https://github.com/conda-forge/xarray-feedstock/blob/main/LICENSE.txt) @@ -28,27 +28,28 @@ Current release info | Name | Downloads | Version | Platforms | | --- | --- | --- | --- | | [![Conda Recipe](https://img.shields.io/badge/recipe-xarray-green.svg)](https://anaconda.org/conda-forge/xarray) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/xarray.svg)](https://anaconda.org/conda-forge/xarray) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/xarray.svg)](https://anaconda.org/conda-forge/xarray) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/xarray.svg)](https://anaconda.org/conda-forge/xarray) | +| [![Conda Recipe](https://img.shields.io/badge/recipe-xarray--core-green.svg)](https://anaconda.org/conda-forge/xarray-core) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/xarray-core.svg)](https://anaconda.org/conda-forge/xarray-core) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/xarray-core.svg)](https://anaconda.org/conda-forge/xarray-core) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/xarray-core.svg)](https://anaconda.org/conda-forge/xarray-core) | -Installing xarray -================= +Installing xarray-suite +======================= -Installing `xarray` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: +Installing `xarray-suite` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with: ``` conda config --add channels conda-forge conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `xarray` can be installed with `conda`: +Once the `conda-forge` channel has been enabled, `xarray, xarray-core` can be installed with `conda`: ``` -conda install xarray +conda install xarray xarray-core ``` or with `mamba`: ``` -mamba install xarray +mamba install xarray xarray-core ``` It is possible to list all of the versions of `xarray` available on your platform with `conda`: @@ -118,17 +119,17 @@ Terminology produce the finished article (built conda distributions) -Updating xarray-feedstock -========================= +Updating xarray-suite-feedstock +=============================== -If you would like to improve the xarray recipe or build a new +If you would like to improve the xarray-suite recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the `conda-forge` channel, whereupon the built conda packages will be available for everybody to install and use from the `conda-forge` channel. -Note that all branches in the conda-forge/xarray-feedstock are +Note that all branches in the conda-forge/xarray-suite-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions. diff --git a/build-locally.py b/build-locally.py index e0d408d..d78427b 100755 --- a/build-locally.py +++ b/build-locally.py @@ -3,11 +3,11 @@ # This file has been generated by conda-smithy in order to build the recipe # locally. # -import os import glob +import os +import platform import subprocess from argparse import ArgumentParser -import platform def setup_environment(ns): diff --git a/recipe/meta.yaml b/recipe/meta.yaml index bd4765b..5845292 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,8 +1,12 @@ {% set name = "xarray" %} {% set version = "2024.7.0" %} +{% set min_python = "python >=3.9" %} + +# handle undefined PYTHON in `noarch: generic` outputs +{% if PYTHON is not defined %}{% set PYTHON = "$PYTHON" %}{% endif %} package: - name: {{ name|lower }} + name: xarray-suite version: {{ version }} source: @@ -11,50 +15,80 @@ source: build: noarch: python - script: {{ PYTHON }} -m pip install . -vv - number: 0 - -requirements: - host: - - python >=3.9 - - setuptools >=42 - - setuptools-scm >=7 - - pip - run: - - python >=3.9 - - numpy >=1.23 - - pandas >=2.0 - - packaging >=23.1 - run_constrained: - - bottleneck >=1.3 - - cartopy >=0.21 - - cftime >=1.6 - - dask-core >=2023.4 - - distributed >=2023.4 - - flox >=0.7 - - h5netcdf >=1.1 - - h5py >=3.8 - - hdf5 >=1.12 - - iris >=3.4 - - matplotlib-base >=3.7 - - nc-time-axis >=1.4 - - netcdf4 >=1.6.0 - - numba >=0.56 - - pint >=0.22 - - scipy >=1.10 - - seaborn >=0.12 - - sparse >=0.14 - - toolz >=0.12 - - zarr >=2.14 + number: 1 -test: - imports: - - xarray - - xarray.backends - requires: - - pip - commands: - - pip check +outputs: + - name: xarray-core + build: + noarch: generic + script: {{ PYTHON }} -m pip install . -vv + requirements: + host: + - {{ min_python }} + - setuptools >=42 + - setuptools-scm >=7 + - pip + run: + - {{ min_python }} + - numpy >=1.23 + - packaging >=23.1 + - pandas >=2.0 + test: + imports: + - xarray + requires: + - pip + commands: + - pip check + - name: xarray + build: + noarch: generic + requirements: + host: + - {{ min_python }} + - setuptools >=42 + - setuptools-scm >=7 + - pip + run: + - {{ min_python }} + - {{ pin_subpackage("xarray-core", max_pin="x.x.x") }} + # accel + - flox >=0.7 + - opt_einsum + - numbagg + # io & cloud + - fsspec + - netcdf4 >=1.6.0 + - zarr >=2.14 + # plotting + - matplotlib-base >=3.7 + # misc + - pooch + run_constrained: + - bottleneck >=1.3 + - cartopy >=0.21 + - cftime >=1.6 + - dask-core >=2023.4 + - distributed >=2023.4 + - h5netcdf >=1.1 + - h5py >=3.8 + - hdf5 >=1.12 + - iris >=3.4 + - nc-time-axis >=1.4 + - numba >=0.56 + - pint >=0.22 + - scipy >=1.10 + - seaborn >=0.12 + - sparse >=0.14 + - toolz >=0.12 + test: + imports: + - xarray + - xarray.backends + requires: + - pip + commands: + - pip check about: home: https://github.com/pydata/xarray