From cbfd47f51b102f2bf2e84da0a5eaeca47143acea Mon Sep 17 00:00:00 2001 From: Dhananjhay Date: Mon, 24 Feb 2025 08:17:39 -0500 Subject: [PATCH 1/8] add poethepoet --- recipes/poethepoet/meta.yaml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 recipes/poethepoet/meta.yaml diff --git a/recipes/poethepoet/meta.yaml b/recipes/poethepoet/meta.yaml new file mode 100644 index 0000000000000..f63a223d40c8c --- /dev/null +++ b/recipes/poethepoet/meta.yaml @@ -0,0 +1,47 @@ +{% set name = "poethepoet" %} +{% set version = "0.10.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/poethepoet-{{ version }}.tar.gz + sha256: 70b97cb194b978dc464c70793e85e6f746cddf82b84a38bfb135946ad71ae19c + +build: + entry_points: + - poe = poethepoet:main + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + host: + - python >=3.6,<4.0 + - poetry >=0.12 + - poetry-core + - pip + run: + - python >=3.6.0,<4.0.0 + - pastel >=0.2.0,<0.3.0 + - tomlkit >=0.6.0,<1.0.0 + +test: + imports: + - poethepoet + commands: + - pip check + - poe --help + requires: + - pip + +about: + home: https://github.com/nat-n/poethepoet + summary: A task runner that works well with poetry. + license: MIT + license_file: LICENSE + +extra: + recipe-maintainers: + - Dhananjhay From 4221f6ae4955483816ea2c4a52b504e822de663f Mon Sep 17 00:00:00 2001 From: Dhananjhay Date: Mon, 24 Feb 2025 21:53:20 -0500 Subject: [PATCH 2/8] set python_min --- recipes/poethepoet/meta.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/poethepoet/meta.yaml b/recipes/poethepoet/meta.yaml index f63a223d40c8c..8a4815bc51fa4 100644 --- a/recipes/poethepoet/meta.yaml +++ b/recipes/poethepoet/meta.yaml @@ -1,5 +1,6 @@ {% set name = "poethepoet" %} {% set version = "0.10.0" %} +{% set python_min = "3.6" %} package: name: {{ name|lower }} @@ -18,12 +19,12 @@ build: requirements: host: - - python >=3.6,<4.0 + - python {{ python_min }} - poetry >=0.12 - poetry-core - pip run: - - python >=3.6.0,<4.0.0 + - python >={{ python_min }} - pastel >=0.2.0,<0.3.0 - tomlkit >=0.6.0,<1.0.0 @@ -34,6 +35,7 @@ test: - pip check - poe --help requires: + - python {{ python_min }} - pip about: From 7c867d271091b9dd59bde9f9cc58a5f38730c2e0 Mon Sep 17 00:00:00 2001 From: Dhananjhay Date: Mon, 24 Feb 2025 22:17:39 -0500 Subject: [PATCH 3/8] change entry point --- recipes/poethepoet/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/poethepoet/meta.yaml b/recipes/poethepoet/meta.yaml index 8a4815bc51fa4..7ca96ec730dbf 100644 --- a/recipes/poethepoet/meta.yaml +++ b/recipes/poethepoet/meta.yaml @@ -12,7 +12,7 @@ source: build: entry_points: - - poe = poethepoet:main + - poe = poethepoet.__main__:mains noarch: python script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 From f52e72fbd45e221e74b638505c39413d9e5c1149 Mon Sep 17 00:00:00 2001 From: Dhananjhay Date: Mon, 24 Feb 2025 22:25:16 -0500 Subject: [PATCH 4/8] use main insteads of mains --- recipes/poethepoet/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/poethepoet/meta.yaml b/recipes/poethepoet/meta.yaml index 7ca96ec730dbf..9d59f7e556b2e 100644 --- a/recipes/poethepoet/meta.yaml +++ b/recipes/poethepoet/meta.yaml @@ -12,7 +12,7 @@ source: build: entry_points: - - poe = poethepoet.__main__:mains + - poe = poethepoet.__main__:main noarch: python script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 From 93a6827953e603215b8f7e20e8081a7520eeb519 Mon Sep 17 00:00:00 2001 From: Dhananjhay Date: Mon, 24 Feb 2025 22:34:34 -0500 Subject: [PATCH 5/8] add separate test for windows --- recipes/poethepoet/meta.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/poethepoet/meta.yaml b/recipes/poethepoet/meta.yaml index 9d59f7e556b2e..47b3a6857612c 100644 --- a/recipes/poethepoet/meta.yaml +++ b/recipes/poethepoet/meta.yaml @@ -12,7 +12,7 @@ source: build: entry_points: - - poe = poethepoet.__main__:main + - poe = poethepoet:main noarch: python script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 @@ -33,7 +33,8 @@ test: - poethepoet commands: - pip check - - poe --help + - python -m poethepoet --help + - poe --help # [not win] requires: - python {{ python_min }} - pip From b3d1d6f20174eef6ab07e10e27c4eccdedad0fc0 Mon Sep 17 00:00:00 2001 From: Dhananjhay Date: Mon, 24 Feb 2025 22:36:50 -0500 Subject: [PATCH 6/8] syntax --- recipes/poethepoet/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/poethepoet/meta.yaml b/recipes/poethepoet/meta.yaml index 47b3a6857612c..2a4e8c42d8af8 100644 --- a/recipes/poethepoet/meta.yaml +++ b/recipes/poethepoet/meta.yaml @@ -34,7 +34,7 @@ test: commands: - pip check - python -m poethepoet --help - - poe --help # [not win] + - poe --help # [not win] requires: - python {{ python_min }} - pip From c604bebbeddfc49d492649a99c41ce12c529021d Mon Sep 17 00:00:00 2001 From: Dhananjhay Date: Mon, 24 Feb 2025 22:51:17 -0500 Subject: [PATCH 7/8] skip windows --- recipes/poethepoet/meta.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipes/poethepoet/meta.yaml b/recipes/poethepoet/meta.yaml index 2a4e8c42d8af8..ec95114c88705 100644 --- a/recipes/poethepoet/meta.yaml +++ b/recipes/poethepoet/meta.yaml @@ -13,7 +13,7 @@ source: build: entry_points: - poe = poethepoet:main - noarch: python + skip: True # [win] script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation number: 0 @@ -33,8 +33,7 @@ test: - poethepoet commands: - pip check - - python -m poethepoet --help - - poe --help # [not win] + - poe --help requires: - python {{ python_min }} - pip From 3f4991839f1dc8decbedd352200c641c0123fb33 Mon Sep 17 00:00:00 2001 From: Dhananjhay Date: Mon, 24 Feb 2025 23:21:28 -0500 Subject: [PATCH 8/8] remove python constraint --- recipes/poethepoet/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/poethepoet/meta.yaml b/recipes/poethepoet/meta.yaml index ec95114c88705..a32829e655226 100644 --- a/recipes/poethepoet/meta.yaml +++ b/recipes/poethepoet/meta.yaml @@ -24,7 +24,7 @@ requirements: - poetry-core - pip run: - - python >={{ python_min }} + - python - pastel >=0.2.0,<0.3.0 - tomlkit >=0.6.0,<1.0.0