try build with poetry
-{% set name = "pytest-asyncio-cooperative" %}
-{% set version = "0.28.0" %}
-
+{% set pyproject = load_file_data('pyproject.toml') %}
+{% set poetry = pyproject.get('tool', {}).get('poetry') %}
+{% set name = poetry.get('name') %}
+{% set version = poetry.get('version') %}
package:
- name: {{ name|lower }}
+ name: {{ name }}
version: {{ version }}
source:
@@ -13,7 +14,7 @@ source:
build:
number: 0
noarch: python
- script: {{ PYTHON }} -m pip install . -vv
+ script: {{ PYTHON }} -m poetry build
requirements:
build:
@@ -21,8 +22,10 @@ requirements:
host:
- pip
- python >=3.7
+ - poetry >=1.3.1
run:
- python >=3.7
+ - poetry >=1.3.1
test:
imports:
