From 6a2ad25b90d8cdf34e65d8754bb4d734dbeb2903 Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 06:51:30 -0300 Subject: [PATCH 01/28] add pyrte_rrtmgp recipe --- recipes/pyrte_rrtmgp/meta.yaml | 66 ++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 recipes/pyrte_rrtmgp/meta.yaml diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml new file mode 100644 index 0000000000000..875f32dfd5ff5 --- /dev/null +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -0,0 +1,66 @@ +{% set name = "pyrte_rrtmgp" %} +{% set version = "0.0.2" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz + sha256: 3881b3f8c4f5113bc144916bc84c2c3efed39a26ee4647e54fa54e5f01eeb3b2 + +build: + script: {{ PYTHON }} -m pip install . -vv + number: 0 + +requirements: + build: + - gcc_linux-64 # [linux] + - gxx_linux-64 # [linux] + - gfortran_linux-64 # [linux] + - clang_osx-64 # [osx] + - clangxx_osx-64 # [osx] + - gfortran_osx-64 # [osx] + - binutils # [not win] + - m2w64-gcc-fortran # [win] + - m2w64-gcc # [win] + - m2w64-binutils # [win] + - libuv==1.44.2 + - cmake==3.26.4 + - make + + host: + - python + - pip + - scikit-build-core + - pybind11 >=2.10.0 + - numpy >=1.21.0 + + run: + - python + - numpy >=1.21.0 + +test: + imports: + - pyrte_rrtmgp + requires: + - numpy>=1.21 + - pytest>=7.4 + source_files: + - tests + commands: + - pytest tests + +about: + home: https://github.com/earth-system-radiation/pyRTE-RRTMGP + summary: A Python interface to the RTE+RRTMGP Fortran software package. + license: BSD + license_family: BSD + license_file: LICENSE.txt + doc_url: https://pyrte-rrtmgp.readthedocs.io/ + +extra: + recipe-maintainers: + - giancastro + - tcmetzger + - RobertPincus From e5de5af06b2bf1e9c89278ba85d9654ba7a77105 Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 07:05:07 -0300 Subject: [PATCH 02/28] fix linting warnings --- recipes/pyrte_rrtmgp/meta.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 875f32dfd5ff5..b07e7c20c7f77 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -25,8 +25,8 @@ requirements: - m2w64-gcc-fortran # [win] - m2w64-gcc # [win] - m2w64-binutils # [win] - - libuv==1.44.2 - - cmake==3.26.4 + - libuv ==1.44.2 + - cmake ==3.26.4 - make host: @@ -54,13 +54,11 @@ test: about: home: https://github.com/earth-system-radiation/pyRTE-RRTMGP summary: A Python interface to the RTE+RRTMGP Fortran software package. - license: BSD - license_family: BSD + license: BSD-3-Clause + license_family: BSD-3-Clause license_file: LICENSE.txt doc_url: https://pyrte-rrtmgp.readthedocs.io/ extra: recipe-maintainers: - giancastro - - tcmetzger - - RobertPincus From 28e5cf0ad9c09874854320627fff292cd528d63f Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 07:09:48 -0300 Subject: [PATCH 03/28] fix linting warnings and add target platform --- recipes/pyrte_rrtmgp/meta.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index b07e7c20c7f77..eac15aadaab45 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -51,11 +51,14 @@ test: commands: - pytest tests +target_platform: + - linux-64 + about: home: https://github.com/earth-system-radiation/pyRTE-RRTMGP summary: A Python interface to the RTE+RRTMGP Fortran software package. license: BSD-3-Clause - license_family: BSD-3-Clause + license_family: BSD license_file: LICENSE.txt doc_url: https://pyrte-rrtmgp.readthedocs.io/ From 21bc5bcca32f9768a08c57d7b5d1c8d7ebf7c47a Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 07:26:38 -0300 Subject: [PATCH 04/28] update build platform --- recipes/pyrte_rrtmgp/meta.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index eac15aadaab45..8bbf39c8f9d62 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -12,6 +12,7 @@ source: build: script: {{ PYTHON }} -m pip install . -vv number: 0 + skip: True # [not linux and not x64] requirements: build: @@ -51,9 +52,6 @@ test: commands: - pytest tests -target_platform: - - linux-64 - about: home: https://github.com/earth-system-radiation/pyRTE-RRTMGP summary: A Python interface to the RTE+RRTMGP Fortran software package. From 68640ff8570d97e0b53944928ab99c8ff70604d0 Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 07:28:05 -0300 Subject: [PATCH 05/28] fix linting warnings --- recipes/pyrte_rrtmgp/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 8bbf39c8f9d62..4bf6ad6213fa1 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -12,7 +12,7 @@ source: build: script: {{ PYTHON }} -m pip install . -vv number: 0 - skip: True # [not linux and not x64] + skip: True # [not linux and not x64] requirements: build: From bc72e2ca1a6ce632c4a80c7e0c63909a95a0becb Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 07:38:46 -0300 Subject: [PATCH 06/28] update target platform --- recipes/pyrte_rrtmgp/meta.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 4bf6ad6213fa1..822787ae0e39c 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -6,13 +6,12 @@ package: version: {{ version }} source: - url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz - sha256: 3881b3f8c4f5113bc144916bc84c2c3efed39a26ee4647e54fa54e5f01eeb3b2 + url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz # [linux32] + sha256: 3881b3f8c4f5113bc144916bc84c2c3efed39a26ee4647e54fa54e5f01eeb3b2 # [linux32] build: script: {{ PYTHON }} -m pip install . -vv number: 0 - skip: True # [not linux and not x64] requirements: build: From a05d48a6129caa51b3ccc9cdba7059d3e6ececee Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 07:45:05 -0300 Subject: [PATCH 07/28] update target platform --- recipes/pyrte_rrtmgp/meta.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 822787ae0e39c..588d7a088cf56 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -6,12 +6,13 @@ package: version: {{ version }} source: - url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz # [linux32] - sha256: 3881b3f8c4f5113bc144916bc84c2c3efed39a26ee4647e54fa54e5f01eeb3b2 # [linux32] + url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz + sha256: 3881b3f8c4f5113bc144916bc84c2c3efed39a26ee4647e54fa54e5f01eeb3b2 build: script: {{ PYTHON }} -m pip install . -vv number: 0 + skip: True # [not linux32] requirements: build: From e5ea2a03f557e71717ca74009a51b3b91f144ea5 Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 08:07:01 -0300 Subject: [PATCH 08/28] update target platform --- recipes/pyrte_rrtmgp/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 588d7a088cf56..6f905db262c1b 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -12,7 +12,7 @@ source: build: script: {{ PYTHON }} -m pip install . -vv number: 0 - skip: True # [not linux32] + skip: True # [not linux and not x86_64] requirements: build: From b05cee43bf4c35e2a1e0f6e8ead6dc6b9f48a0a4 Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 08:49:58 -0300 Subject: [PATCH 09/28] update target platform --- recipes/pyrte_rrtmgp/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 6f905db262c1b..eec348b0384df 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -12,7 +12,7 @@ source: build: script: {{ PYTHON }} -m pip install . -vv number: 0 - skip: True # [not linux and not x86_64] + skip: True # [not linux] requirements: build: From 54c403ee2fe13aa548835129b0c69dece1c70cc1 Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 28 Mar 2024 11:20:39 -0300 Subject: [PATCH 10/28] add rte-rrtmgp submodule on sources --- recipes/pyrte_rrtmgp/meta.yaml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index eec348b0384df..00f107d432240 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -1,13 +1,18 @@ {% set name = "pyrte_rrtmgp" %} {% set version = "0.0.2" %} +{% set rte_rrtmgp_version = "1.7" %} package: name: {{ name|lower }} version: {{ version }} source: - url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz - sha256: 3881b3f8c4f5113bc144916bc84c2c3efed39a26ee4647e54fa54e5f01eeb3b2 + - url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz + sha256: 3881b3f8c4f5113bc144916bc84c2c3efed39a26ee4647e54fa54e5f01eeb3b2 + - url: https://github.com/earth-system-radiation/rte-rrtmgp/archive/refs/tags/v{{ rte_rrtmgp_version }}.tar.gz + fn: rte-rrtmgp-{{ rte_rrtmgp_version }}.tar.gz + sha256: 49fe133e06a69b5d6b389a2934ecc6aebd2405ef4e68b9c9424ded050c75a6c4 + folder: rte-rrtmgp build: script: {{ PYTHON }} -m pip install . -vv @@ -16,16 +21,9 @@ build: requirements: build: - - gcc_linux-64 # [linux] - - gxx_linux-64 # [linux] - - gfortran_linux-64 # [linux] - - clang_osx-64 # [osx] - - clangxx_osx-64 # [osx] - - gfortran_osx-64 # [osx] - - binutils # [not win] - - m2w64-gcc-fortran # [win] - - m2w64-gcc # [win] - - m2w64-binutils # [win] + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - {{ compiler('fortran') }} - libuv ==1.44.2 - cmake ==3.26.4 - make From c1a1905da71ea4dbc5a913d7187499e7820aac8c Mon Sep 17 00:00:00 2001 From: giancastro Date: Mon, 1 Apr 2024 06:15:11 -0300 Subject: [PATCH 11/28] add Robert as a recipe maintainer --- recipes/pyrte_rrtmgp/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 00f107d432240..83a52e6c8b7b8 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -61,3 +61,4 @@ about: extra: recipe-maintainers: - giancastro + - RobertPincus From a3805fef296d1b2267e4030f8efec67b7d92f402 Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 09:27:26 -0300 Subject: [PATCH 12/28] update source versions --- recipes/pyrte_rrtmgp/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 83a52e6c8b7b8..271ba2f97a695 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -1,6 +1,6 @@ {% set name = "pyrte_rrtmgp" %} -{% set version = "0.0.2" %} -{% set rte_rrtmgp_version = "1.7" %} +{% set version = "0.0.6" %} +{% set rte_rrtmgp_version = "1.8" %} package: name: {{ name|lower }} From b17e8f142fa0b196d4412904f16b688eb3ac330d Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 09:56:09 -0300 Subject: [PATCH 13/28] update sha256 --- recipes/pyrte_rrtmgp/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 271ba2f97a695..07eb051ccdf0c 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -8,10 +8,10 @@ package: source: - url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz - sha256: 3881b3f8c4f5113bc144916bc84c2c3efed39a26ee4647e54fa54e5f01eeb3b2 + sha256: b161ac8b1ddca59eb994eb44ba8aabb9a596f50f24a8fd0886fea8c680e41a29 - url: https://github.com/earth-system-radiation/rte-rrtmgp/archive/refs/tags/v{{ rte_rrtmgp_version }}.tar.gz fn: rte-rrtmgp-{{ rte_rrtmgp_version }}.tar.gz - sha256: 49fe133e06a69b5d6b389a2934ecc6aebd2405ef4e68b9c9424ded050c75a6c4 + sha256: e3830007529a3fb35727683ff990cac7e6792cdee4c9d9b07a55c969a97c95e5 folder: rte-rrtmgp build: From 8627971daaab47722747dc801ce53226ee0802be Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 10:08:01 -0300 Subject: [PATCH 14/28] add license --- recipes/pyrte_rrtmgp/LICENSE.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipes/pyrte_rrtmgp/LICENSE.txt diff --git a/recipes/pyrte_rrtmgp/LICENSE.txt b/recipes/pyrte_rrtmgp/LICENSE.txt new file mode 100644 index 0000000000000..558ef9dba6083 --- /dev/null +++ b/recipes/pyrte_rrtmgp/LICENSE.txt @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2015-2018, Atmospheric and Environmental Research and Regents of the University of Colorado. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file From 043897d805b681b2a45b91e8a32cd2538c6b07b4 Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 10:31:10 -0300 Subject: [PATCH 15/28] add xarray to requirements --- recipes/pyrte_rrtmgp/meta.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 07eb051ccdf0c..46c3b11d1abc2 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -34,10 +34,12 @@ requirements: - scikit-build-core - pybind11 >=2.10.0 - numpy >=1.21.0 + - xarray run: - python - numpy >=1.21.0 + - xarray test: imports: @@ -45,6 +47,7 @@ test: requires: - numpy>=1.21 - pytest>=7.4 + - xarray source_files: - tests commands: From 436b24fc155d7d1611ee76a2bd5059fd90f6b1ff Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 10:52:03 -0300 Subject: [PATCH 16/28] update requirements --- recipes/pyrte_rrtmgp/meta.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 46c3b11d1abc2..3366dedbceaaa 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -35,11 +35,25 @@ requirements: - pybind11 >=2.10.0 - numpy >=1.21.0 - xarray + - urllib3 + - netcdf4 + - dask + - scipy + - matplotlib + - seaborn + -colorcet run: - python - numpy >=1.21.0 - xarray + - urllib3 + - netcdf4 + - dask + - scipy + - matplotlib + - seaborn + -colorcet test: imports: @@ -48,6 +62,13 @@ test: - numpy>=1.21 - pytest>=7.4 - xarray + - urllib3 + - netcdf4 + - dask + - scipy + - matplotlib + - seaborn + -colorcet source_files: - tests commands: From fd643e88a250e86e816a29c770ac49d1aa9cab59 Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 10:57:27 -0300 Subject: [PATCH 17/28] update requirements --- recipes/pyrte_rrtmgp/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 3366dedbceaaa..edc3f1828167f 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -41,7 +41,7 @@ requirements: - scipy - matplotlib - seaborn - -colorcet + - colorcet run: - python @@ -53,7 +53,7 @@ requirements: - scipy - matplotlib - seaborn - -colorcet + - colorcet test: imports: @@ -68,7 +68,7 @@ test: - scipy - matplotlib - seaborn - -colorcet + - colorcet source_files: - tests commands: From c404beb28415d2bed908b4e3b45247455cc397ad Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 11:39:54 -0300 Subject: [PATCH 18/28] update recipe --- recipes/pyrte_rrtmgp/meta.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index edc3f1828167f..8d61ea3b4592c 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -24,6 +24,7 @@ requirements: - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ compiler('fortran') }} + - {{ stdlib("c") }} - libuv ==1.44.2 - cmake ==3.26.4 - make @@ -42,6 +43,7 @@ requirements: - matplotlib - seaborn - colorcet + - matplotlib-base run: - python @@ -52,6 +54,7 @@ requirements: - dask - scipy - matplotlib + - matplotlib-base - seaborn - colorcet @@ -67,6 +70,7 @@ test: - dask - scipy - matplotlib + - matplotlib-base - seaborn - colorcet source_files: From 15656ce68e3cd9a1db9eb79f727f3507bca45808 Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 12:14:40 -0300 Subject: [PATCH 19/28] add test data --- recipes/pyrte_rrtmgp/meta.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 8d61ea3b4592c..43641b8ce9f17 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -9,14 +9,17 @@ package: source: - url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz sha256: b161ac8b1ddca59eb994eb44ba8aabb9a596f50f24a8fd0886fea8c680e41a29 + folder: pyRTE-RRTMGP - url: https://github.com/earth-system-radiation/rte-rrtmgp/archive/refs/tags/v{{ rte_rrtmgp_version }}.tar.gz fn: rte-rrtmgp-{{ rte_rrtmgp_version }}.tar.gz sha256: e3830007529a3fb35727683ff990cac7e6792cdee4c9d9b07a55c969a97c95e5 folder: rte-rrtmgp build: - script: {{ PYTHON }} -m pip install . -vv - number: 0 + script: | + {{ PYTHON }} -m pip install . -vv + python -c "from pyrte_rrtmgp import download_rrtmgp_data; download_rrtmgp_data()" + number: 1 skip: True # [not linux] requirements: @@ -76,6 +79,7 @@ test: source_files: - tests commands: + - python -c "from pyrte_rrtmgp import download_rrtmgp_data; download_rrtmgp_data()" # Ensure data is available - pytest tests about: From 186e60ac49e67822cd462dfdcda039949d8bcaaf Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 12:23:48 -0300 Subject: [PATCH 20/28] add test data --- recipes/pyrte_rrtmgp/meta.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 43641b8ce9f17..e8bac0e2d6091 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -16,10 +16,8 @@ source: folder: rte-rrtmgp build: - script: | - {{ PYTHON }} -m pip install . -vv - python -c "from pyrte_rrtmgp import download_rrtmgp_data; download_rrtmgp_data()" - number: 1 + script: {{ PYTHON }} -m pip install . -vv + number: 0 skip: True # [not linux] requirements: From c6f67231ae45fc492e3b7b523e5302637abe6239 Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 14:21:47 -0300 Subject: [PATCH 21/28] update recipe --- recipes/pyrte_rrtmgp/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index e8bac0e2d6091..05632c8ce63e4 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -77,6 +77,7 @@ test: source_files: - tests commands: + - ls . - python -c "from pyrte_rrtmgp import download_rrtmgp_data; download_rrtmgp_data()" # Ensure data is available - pytest tests From ec419b4c654518e17598b08bea2ad8cb04140beb Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 14:31:53 -0300 Subject: [PATCH 22/28] update recipe --- recipes/pyrte_rrtmgp/meta.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 05632c8ce63e4..dcdd2e23d83d6 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -77,8 +77,6 @@ test: source_files: - tests commands: - - ls . - - python -c "from pyrte_rrtmgp import download_rrtmgp_data; download_rrtmgp_data()" # Ensure data is available - pytest tests about: From c904646b6ae6165a4af1408ae6e96bc8591f3f62 Mon Sep 17 00:00:00 2001 From: giancastro Date: Tue, 19 Nov 2024 14:40:55 -0300 Subject: [PATCH 23/28] update recipe --- recipes/pyrte_rrtmgp/meta.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index dcdd2e23d83d6..8d61ea3b4592c 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -9,7 +9,6 @@ package: source: - url: https://github.com/earth-system-radiation/pyRTE-RRTMGP/archive/refs/tags/v{{ version }}.tar.gz sha256: b161ac8b1ddca59eb994eb44ba8aabb9a596f50f24a8fd0886fea8c680e41a29 - folder: pyRTE-RRTMGP - url: https://github.com/earth-system-radiation/rte-rrtmgp/archive/refs/tags/v{{ rte_rrtmgp_version }}.tar.gz fn: rte-rrtmgp-{{ rte_rrtmgp_version }}.tar.gz sha256: e3830007529a3fb35727683ff990cac7e6792cdee4c9d9b07a55c969a97c95e5 From 52ffe708878721c186653981e7f4ba4e2fe0a122 Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 21 Nov 2024 08:36:26 -0300 Subject: [PATCH 24/28] add test data --- recipes/pyrte_rrtmgp/meta.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 8d61ea3b4592c..2c3554f4d4f1a 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -1,6 +1,7 @@ {% set name = "pyrte_rrtmgp" %} {% set version = "0.0.6" %} {% set rte_rrtmgp_version = "1.8" %} +{% set rrtmgp_data = "1.8.2" %} package: name: {{ name|lower }} @@ -13,6 +14,9 @@ source: fn: rte-rrtmgp-{{ rte_rrtmgp_version }}.tar.gz sha256: e3830007529a3fb35727683ff990cac7e6792cdee4c9d9b07a55c969a97c95e5 folder: rte-rrtmgp + - url: https://github.com/earth-system-radiation/rrtmgp-data/archive/refs/tags/v{{ rrtmgp_data }}.tar.gz + sha256: 6d6c3d8b0f015f888b9bc6b6be8c2d92d2af336381f77256764d38f7eba3c6a3 + folder: rrtmgp-data build: script: {{ PYTHON }} -m pip install . -vv @@ -75,6 +79,7 @@ test: - colorcet source_files: - tests + - rrtmgp-data commands: - pytest tests From 1e4b515fbaf89c8927c352f58e26f2fe24e7fc70 Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 21 Nov 2024 11:03:39 -0300 Subject: [PATCH 25/28] update requirements and remove tests --- recipes/pyrte_rrtmgp/meta.yaml | 42 ++++++---------------------------- 1 file changed, 7 insertions(+), 35 deletions(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 2c3554f4d4f1a..2d8c23a500828 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -14,9 +14,6 @@ source: fn: rte-rrtmgp-{{ rte_rrtmgp_version }}.tar.gz sha256: e3830007529a3fb35727683ff990cac7e6792cdee4c9d9b07a55c969a97c95e5 folder: rte-rrtmgp - - url: https://github.com/earth-system-radiation/rrtmgp-data/archive/refs/tags/v{{ rrtmgp_data }}.tar.gz - sha256: 6d6c3d8b0f015f888b9bc6b6be8c2d92d2af336381f77256764d38f7eba3c6a3 - folder: rrtmgp-data build: script: {{ PYTHON }} -m pip install . -vv @@ -39,49 +36,24 @@ requirements: - scikit-build-core - pybind11 >=2.10.0 - numpy >=1.21.0 - - xarray + - xarray >=2023.5.0 - urllib3 - - netcdf4 - - dask - - scipy - - matplotlib - - seaborn - - colorcet - - matplotlib-base + - netcdf4 >=1.5.7 run: - python - numpy >=1.21.0 - - xarray + - xarray >=2023.5.0 - urllib3 - - netcdf4 - - dask - - scipy - - matplotlib - - matplotlib-base - - seaborn - - colorcet + - netcdf4 >=1.5.7 test: imports: - pyrte_rrtmgp - requires: - - numpy>=1.21 - - pytest>=7.4 - - xarray - - urllib3 - - netcdf4 - - dask - - scipy - - matplotlib - - matplotlib-base - - seaborn - - colorcet - source_files: - - tests - - rrtmgp-data commands: - - pytest tests + - pip check + requires: + - pip about: home: https://github.com/earth-system-radiation/pyRTE-RRTMGP From 6adedf21ff11ad71f2ac2769afb8a5f3c1f6b2ff Mon Sep 17 00:00:00 2001 From: giancastro Date: Thu, 21 Nov 2024 11:18:29 -0300 Subject: [PATCH 26/28] remove unused var --- recipes/pyrte_rrtmgp/meta.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 2d8c23a500828..0371974353109 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -1,7 +1,6 @@ {% set name = "pyrte_rrtmgp" %} {% set version = "0.0.6" %} {% set rte_rrtmgp_version = "1.8" %} -{% set rrtmgp_data = "1.8.2" %} package: name: {{ name|lower }} From b2bdb15dcf217934ea764dc9ef47419856cd1c97 Mon Sep 17 00:00:00 2001 From: Giancarlo Castro Date: Mon, 25 Nov 2024 07:53:14 -0300 Subject: [PATCH 27/28] Update recipes/pyrte_rrtmgp/meta.yaml Co-authored-by: Uwe L. Korn --- recipes/pyrte_rrtmgp/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index 0371974353109..e4ee1e9de6dbd 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -34,7 +34,7 @@ requirements: - pip - scikit-build-core - pybind11 >=2.10.0 - - numpy >=1.21.0 + - numpy - xarray >=2023.5.0 - urllib3 - netcdf4 >=1.5.7 From 9f0e533a90dddebe852d7e14bb93c4995a807e83 Mon Sep 17 00:00:00 2001 From: Giancarlo Castro Date: Mon, 25 Nov 2024 07:54:11 -0300 Subject: [PATCH 28/28] Update recipes/pyrte_rrtmgp/meta.yaml Co-authored-by: Uwe L. Korn --- recipes/pyrte_rrtmgp/meta.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/pyrte_rrtmgp/meta.yaml b/recipes/pyrte_rrtmgp/meta.yaml index e4ee1e9de6dbd..6f51fac1169fd 100644 --- a/recipes/pyrte_rrtmgp/meta.yaml +++ b/recipes/pyrte_rrtmgp/meta.yaml @@ -25,7 +25,6 @@ requirements: - {{ compiler('cxx') }} - {{ compiler('fortran') }} - {{ stdlib("c") }} - - libuv ==1.44.2 - cmake ==3.26.4 - make