From 658c9f992ec6c01f523e541e59f8e3fa4524909f Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Wed, 15 May 2024 14:07:19 -0600 Subject: [PATCH 1/9] Adding conda-recipe-manager as a conda-forge feedstock - This will allow us to start publishing versions that others can consume - The most immediate need is for an [ask in Grayskull](https://github.com/conda/grayskull/issues/486) --- recipes/conda-recipe-manager/LICENSE | 32 ++++++++++++++ recipes/conda-recipe-manager/meta.yaml | 59 ++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 recipes/conda-recipe-manager/LICENSE create mode 100644 recipes/conda-recipe-manager/meta.yaml diff --git a/recipes/conda-recipe-manager/LICENSE b/recipes/conda-recipe-manager/LICENSE new file mode 100644 index 0000000000000..2e70fdfe99455 --- /dev/null +++ b/recipes/conda-recipe-manager/LICENSE @@ -0,0 +1,32 @@ +BSD 3-Clause License + +Copyright (c) 2024, conda-incubator +Copyright (c) 2012, Anaconda, Inc. +Copyright (c) 2015-2022, conda-forge +Copyright (c) 2015-2022 The Bioconda team +Copyright (c) 2015-2022, conda-forge contributors + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. 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. + +3. 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. diff --git a/recipes/conda-recipe-manager/meta.yaml b/recipes/conda-recipe-manager/meta.yaml new file mode 100644 index 0000000000000..4eab04875488f --- /dev/null +++ b/recipes/conda-recipe-manager/meta.yaml @@ -0,0 +1,59 @@ +{% set name = "conda-recipe-manager" %} +{% set version = "0.2.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/conda-incubator/conda-recipe-manager/archive/refs/tags/v{{ version }}.tar.gz + sha256: e26102b317ff6bb2d63040db10cfee4db9d660447c3f1c076ddd524805abd1b2 + +build: + number: 0 + noarch: python + script: pip install . --no-deps --no-build-isolation -vv + entry_points: + - conda-recipe-manager = conda_recipe_manager.commands.conda_recipe_manager:conda_recipe_manager + +requirements: + host: + - python + - pip + - setuptools + - wheel + run: + - python >=3.11 + - click >=8.1.7 + - conda + - jinja2 + - pyyaml + - jsonschema + - requests + +test: + imports: + - conda_recipe_manager.commands + - conda_recipe_manager.licenses + - conda_recipe_manager.parser + source_files: + - tests/ + requires: + - pip + - pytest + - pytest-xdist + commands: + - pip check + - python -m pytest -n auto tests/ + +about: + home: https://github.com/anaconda/conda-recipe-manager + license: BSD-3-Clause + license_family: BSD + license_file: LICENSE + license_url: https://github.com/anaconda/conda-recipe-manager/blob/main/LICENSE + summary: Helper tool for recipes on aggregate. + description: | + Renders local recipes, provides build orders, find outdated recipes. + doc_url: https://github.com/anaconda/conda-recipe-manager + dev_url: https://github.com/anaconda/conda-recipe-manager From 3c767301cf97d6503f201acba1d5fdb876ceac59 Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Wed, 15 May 2024 14:14:11 -0600 Subject: [PATCH 2/9] Adds maintainers...which is me --- recipes/conda-recipe-manager/meta.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/conda-recipe-manager/meta.yaml b/recipes/conda-recipe-manager/meta.yaml index 4eab04875488f..fd525d83f2b91 100644 --- a/recipes/conda-recipe-manager/meta.yaml +++ b/recipes/conda-recipe-manager/meta.yaml @@ -57,3 +57,7 @@ about: Renders local recipes, provides build orders, find outdated recipes. doc_url: https://github.com/anaconda/conda-recipe-manager dev_url: https://github.com/anaconda/conda-recipe-manager + +extra: + recipe-maintainers: + - schuylermartin45 From e91f1a5eab19104ae31e88c85739611332559191 Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Wed, 15 May 2024 14:38:37 -0600 Subject: [PATCH 3/9] Not interested in Windows support at the moment for conda-forge infrastructure --- recipes/conda-recipe-manager/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/conda-recipe-manager/meta.yaml b/recipes/conda-recipe-manager/meta.yaml index fd525d83f2b91..49797e9215f65 100644 --- a/recipes/conda-recipe-manager/meta.yaml +++ b/recipes/conda-recipe-manager/meta.yaml @@ -13,6 +13,7 @@ build: number: 0 noarch: python script: pip install . --no-deps --no-build-isolation -vv + skip: True # [win] entry_points: - conda-recipe-manager = conda_recipe_manager.commands.conda_recipe_manager:conda_recipe_manager From 759c2eebc51b56b0bc3731934f763b7bd53d4532 Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Wed, 15 May 2024 14:42:38 -0600 Subject: [PATCH 4/9] Redacts noarch line from linter --- recipes/conda-recipe-manager/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/conda-recipe-manager/meta.yaml b/recipes/conda-recipe-manager/meta.yaml index 49797e9215f65..194c528cfd5dc 100644 --- a/recipes/conda-recipe-manager/meta.yaml +++ b/recipes/conda-recipe-manager/meta.yaml @@ -11,8 +11,8 @@ source: build: number: 0 - noarch: python script: pip install . --no-deps --no-build-isolation -vv + # This package could be noarch as it is purely Python, but we do not need to have Windows support at this time skip: True # [win] entry_points: - conda-recipe-manager = conda_recipe_manager.commands.conda_recipe_manager:conda_recipe_manager From 0be9df9e63ef7fd265982dc9c22e06306f5cfe46 Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Wed, 15 May 2024 14:46:54 -0600 Subject: [PATCH 5/9] Redacts version constraints per linter request --- recipes/conda-recipe-manager/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/conda-recipe-manager/meta.yaml b/recipes/conda-recipe-manager/meta.yaml index 194c528cfd5dc..3fb77210389ab 100644 --- a/recipes/conda-recipe-manager/meta.yaml +++ b/recipes/conda-recipe-manager/meta.yaml @@ -24,7 +24,7 @@ requirements: - setuptools - wheel run: - - python >=3.11 + - python - click >=8.1.7 - conda - jinja2 From ac28e2c69f1f3d2935c6acbf3e48c053256c6fce Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Thu, 16 May 2024 08:36:37 -0600 Subject: [PATCH 6/9] Switching back to noarch; will try to add Windows support --- recipes/conda-recipe-manager/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/conda-recipe-manager/meta.yaml b/recipes/conda-recipe-manager/meta.yaml index 3fb77210389ab..5fa1c273bd5be 100644 --- a/recipes/conda-recipe-manager/meta.yaml +++ b/recipes/conda-recipe-manager/meta.yaml @@ -12,8 +12,8 @@ source: build: number: 0 script: pip install . --no-deps --no-build-isolation -vv - # This package could be noarch as it is purely Python, but we do not need to have Windows support at this time - skip: True # [win] + noarch: python + skip: True # [py<311] entry_points: - conda-recipe-manager = conda_recipe_manager.commands.conda_recipe_manager:conda_recipe_manager From ce255dfe690ce9ddfbc63bb57e8d30430b070f14 Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Thu, 16 May 2024 08:46:23 -0600 Subject: [PATCH 7/9] Puts python version contraints on requirements, as indicated in the example in documentation --- recipes/conda-recipe-manager/meta.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes/conda-recipe-manager/meta.yaml b/recipes/conda-recipe-manager/meta.yaml index 5fa1c273bd5be..73333993dac51 100644 --- a/recipes/conda-recipe-manager/meta.yaml +++ b/recipes/conda-recipe-manager/meta.yaml @@ -13,18 +13,17 @@ build: number: 0 script: pip install . --no-deps --no-build-isolation -vv noarch: python - skip: True # [py<311] entry_points: - conda-recipe-manager = conda_recipe_manager.commands.conda_recipe_manager:conda_recipe_manager requirements: host: - - python + - python >=3.11 - pip - setuptools - wheel run: - - python + - python >=3.11 - click >=8.1.7 - conda - jinja2 From 018f8f2215ddee6acf7d7d2fe389945a3fdc02ad Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Thu, 16 May 2024 09:03:53 -0600 Subject: [PATCH 8/9] Adds missing entry point, as mentioned in this Issue thread: https://github.com/conda/conda-build/issues/2627 --- recipes/conda-recipe-manager/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/conda-recipe-manager/meta.yaml b/recipes/conda-recipe-manager/meta.yaml index 73333993dac51..541bc84bd2177 100644 --- a/recipes/conda-recipe-manager/meta.yaml +++ b/recipes/conda-recipe-manager/meta.yaml @@ -15,6 +15,7 @@ build: noarch: python entry_points: - conda-recipe-manager = conda_recipe_manager.commands.conda_recipe_manager:conda_recipe_manager + - crm = conda_recipe_manager.commands.conda_recipe_manager:conda_recipe_manager requirements: host: From 9abe237195e2bde4077c155ac1b7dbe44534f22d Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Thu, 23 May 2024 13:29:59 -0600 Subject: [PATCH 9/9] Removes LICENSE file from feedstock --- recipes/conda-recipe-manager/LICENSE | 32 ---------------------------- 1 file changed, 32 deletions(-) delete mode 100644 recipes/conda-recipe-manager/LICENSE diff --git a/recipes/conda-recipe-manager/LICENSE b/recipes/conda-recipe-manager/LICENSE deleted file mode 100644 index 2e70fdfe99455..0000000000000 --- a/recipes/conda-recipe-manager/LICENSE +++ /dev/null @@ -1,32 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2024, conda-incubator -Copyright (c) 2012, Anaconda, Inc. -Copyright (c) 2015-2022, conda-forge -Copyright (c) 2015-2022 The Bioconda team -Copyright (c) 2015-2022, conda-forge contributors - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. 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. - -3. 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.