From c94b14f6e42b94242713d959694a643938abfbd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Thu, 1 Aug 2024 09:52:52 +0200 Subject: [PATCH 1/7] ENH: split into xarray-core and xarray, add kmuehlbauer as maintainer --- recipe/meta.yaml | 111 +++++++++++++++++++++++++++++------------------ 1 file changed, 69 insertions(+), 42 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index bd4765b..64d2a73 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -12,49 +12,75 @@ source: build: noarch: python script: {{ PYTHON }} -m pip install . -vv - number: 0 + number: 1 -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 - -test: - imports: - - xarray - - xarray.backends - requires: - - pip - commands: - - pip check +outputs: + - name: {{ name }}-core + requirements: + host: + - python >=3.9 + - setuptools >=42 + - setuptools-scm >=7 + - pip + run: + - python >=3.9 + - numpy >=1.23 + - packaging >=23.1 + - pandas >=2.0 + test: + imports: + - xarray + requires: + - pip + commands: + - pip check + - name: {{ name }} + requirements: + host: + - python >=3.9 + - setuptools >=42 + - setuptools-scm >=7 + - pip + run: + - python >=3.9 + - {{ 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 @@ -70,3 +96,4 @@ extra: - dcherian - keewis - TomNicholas + - kmuehlbauer From 7d5732bbd81a8c81d39f6d7205e76e884ad7c6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Thu, 1 Aug 2024 09:55:27 +0200 Subject: [PATCH 2/7] fix indentation --- recipe/meta.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 64d2a73..1b34ea2 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -27,13 +27,13 @@ outputs: - numpy >=1.23 - packaging >=23.1 - pandas >=2.0 - test: - imports: - - xarray - requires: - - pip - commands: - - pip check + test: + imports: + - xarray + requires: + - pip + commands: + - pip check - name: {{ name }} requirements: host: From 774f1aa4d5a936fa87fed1fa4774b47165dd59aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Thu, 1 Aug 2024 10:05:52 +0200 Subject: [PATCH 3/7] fix issues with python not found --- recipe/meta.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 1b34ea2..cccb457 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,5 +1,6 @@ {% set name = "xarray" %} {% set version = "2024.7.0" %} +{% set min_python = "python >=3.9" %} package: name: {{ name|lower }} @@ -11,19 +12,21 @@ source: build: noarch: python - script: {{ PYTHON }} -m pip install . -vv number: 1 outputs: - name: {{ name }}-core + build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv requirements: host: - - python >=3.9 + - {{ min_python }} - setuptools >=42 - setuptools-scm >=7 - pip run: - - python >=3.9 + - {{ min_python }} - numpy >=1.23 - packaging >=23.1 - pandas >=2.0 @@ -37,13 +40,13 @@ outputs: - name: {{ name }} requirements: host: - - python >=3.9 + - {{ min_python }} - setuptools >=42 - setuptools-scm >=7 - pip run: - - python >=3.9 - - {{ pin_subpackage('xarray-core', max_pin="x.x.x") }} + - {{ min_python }} + - {{ pin_subpackage("xarray-core", exact=True) }} # accel - flox >=0.7 - opt_einsum From 0e460fb81b9ef1518bea72120ddf8ff959393f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Thu, 1 Aug 2024 10:24:59 +0200 Subject: [PATCH 4/7] fix issues with python not found --- recipe/meta.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index cccb457..7153b0c 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -2,8 +2,11 @@ {% 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: @@ -15,10 +18,9 @@ build: number: 1 outputs: - - name: {{ name }}-core + - name: xarray-core build: - noarch: python - script: {{ PYTHON }} -m pip install . -vv + noarch: generic requirements: host: - {{ min_python }} @@ -37,7 +39,9 @@ outputs: - pip commands: - pip check - - name: {{ name }} + - name: xarray + build: + noarch: generic requirements: host: - {{ min_python }} From 519328c575bb29d8cf986750b8226ad1ac35ec87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Thu, 1 Aug 2024 10:25:18 +0200 Subject: [PATCH 5/7] fix issues with python not found --- recipe/meta.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 7153b0c..7548a9b 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -103,4 +103,3 @@ extra: - dcherian - keewis - TomNicholas - - kmuehlbauer From bb389145e590a081acd91d1b18caa733bc55d068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Thu, 1 Aug 2024 10:36:56 +0200 Subject: [PATCH 6/7] fix issues with python not found --- recipe/meta.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 7548a9b..5845292 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -21,6 +21,7 @@ outputs: - name: xarray-core build: noarch: generic + script: {{ PYTHON }} -m pip install . -vv requirements: host: - {{ min_python }} @@ -50,7 +51,7 @@ outputs: - pip run: - {{ min_python }} - - {{ pin_subpackage("xarray-core", exact=True) }} + - {{ pin_subpackage("xarray-core", max_pin="x.x.x") }} # accel - flox >=0.7 - opt_einsum From 9b7014e54ed0de07d51b20242d3e5724fc95e6cf Mon Sep 17 00:00:00 2001 From: "conda-forge-webservices[bot]" <91080706+conda-forge-webservices[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 08:43:12 +0000 Subject: [PATCH 7/7] MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.37.2, and conda-forge-pinning 2024.08.01.06.24.24 --- README.md | 25 +++++++++++++------------ build-locally.py | 4 ++-- 2 files changed, 15 insertions(+), 14 deletions(-) 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):