From 0790aa253ea3042519e0fd425e88f7f1cc44457e Mon Sep 17 00:00:00 2001 From: jaimergp Date: Tue, 14 Jan 2025 20:30:37 +0100 Subject: [PATCH 1/4] add recipe for conda-spawn --- recipes/conda-spawn/meta.yaml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 recipes/conda-spawn/meta.yaml diff --git a/recipes/conda-spawn/meta.yaml b/recipes/conda-spawn/meta.yaml new file mode 100644 index 0000000000000..d3e9f5dec21aa --- /dev/null +++ b/recipes/conda-spawn/meta.yaml @@ -0,0 +1,44 @@ +{% set name = "conda-spawn" %} +{% set version = "0.0.1" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz + sha256: d08f50bcc0a45cc27b0502901db3596c06678eabade99d673e81dc3c701a5126 + +build: + number: 0 + noarch: python + script: + - {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vv + +requirements: + host: + - python {{ python_min }} + - pip + - hatchling >=1.12.2 + - hatch-vcs >=0.2.0 + run: + - python >={{ python_min }} + - conda >=23.9.0 + - pexpect + - shellingham + +test: + requires: + - python {{ python_min }} + imports: + - conda_spawn + - conda_spawn.main + commands: + - conda spawn --help + +about: + home: https://github.com/conda-incubator/conda-spawn + license: MIT + license_file: LICENSE + summary: Activate conda environments in new shell processes + dev_url: https://github.com/conda-incubator/conda-spawn From 3c1622ab01e987632647bb3b3b054a3197c7de17 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Tue, 14 Jan 2025 20:31:42 +0100 Subject: [PATCH 2/4] add recipe-maintainers --- recipes/conda-spawn/meta.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/conda-spawn/meta.yaml b/recipes/conda-spawn/meta.yaml index d3e9f5dec21aa..9a86f5b63bcfb 100644 --- a/recipes/conda-spawn/meta.yaml +++ b/recipes/conda-spawn/meta.yaml @@ -42,3 +42,7 @@ about: license_file: LICENSE summary: Activate conda environments in new shell processes dev_url: https://github.com/conda-incubator/conda-spawn + +extra: + recipe-maintainers: + - jaimergp From 03786667909d3ce6db173718f2effcc25e3784e2 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Tue, 14 Jan 2025 20:39:10 +0100 Subject: [PATCH 3/4] normalize url --- recipes/conda-spawn/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/conda-spawn/meta.yaml b/recipes/conda-spawn/meta.yaml index 9a86f5b63bcfb..ce000d04cf2a0 100644 --- a/recipes/conda-spawn/meta.yaml +++ b/recipes/conda-spawn/meta.yaml @@ -6,7 +6,7 @@ package: version: {{ version }} source: - url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name.replace('-', '_') }}-{{ version }}.tar.gz sha256: d08f50bcc0a45cc27b0502901db3596c06678eabade99d673e81dc3c701a5126 build: From c6190c2509014097d53099a9e7678329be6dfba1 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Tue, 14 Jan 2025 20:50:57 +0100 Subject: [PATCH 4/4] avoid shell interference? --- recipes/conda-spawn/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/conda-spawn/meta.yaml b/recipes/conda-spawn/meta.yaml index ce000d04cf2a0..cbb0239f83ee4 100644 --- a/recipes/conda-spawn/meta.yaml +++ b/recipes/conda-spawn/meta.yaml @@ -34,7 +34,7 @@ test: - conda_spawn - conda_spawn.main commands: - - conda spawn --help + - python -m conda spawn --help about: home: https://github.com/conda-incubator/conda-spawn