From c07978d24c68154d551f7fd9a5973ef42ec6869c Mon Sep 17 00:00:00 2001 From: Anselm Hahn Date: Mon, 26 Dec 2022 20:38:02 +0100 Subject: [PATCH 1/3] Add recipe `keras-nlp` --- recipes/keras-nlp/meta.yaml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 recipes/keras-nlp/meta.yaml diff --git a/recipes/keras-nlp/meta.yaml b/recipes/keras-nlp/meta.yaml new file mode 100644 index 0000000000000..59b4f40cd739d --- /dev/null +++ b/recipes/keras-nlp/meta.yaml @@ -0,0 +1,45 @@ +{% set name = "keras-nlp" %} +{% set version = "0.3.1" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/keras-nlp-{{ version }}.tar.gz + sha256: 44723deed5c271078cae48ca91cf8e8f6c9ffe85e01a52aee17d02366de959a5 + +build: + script: {{ PYTHON }} -m pip install . -vv + number: 0 + +requirements: + host: + - python + - pip + run: + - python + - absl-py + - numpy + - packaging + - tensorflow # [not osx] + +test: + imports: + - examples + commands: + - pip check + requires: + - pip + +about: + home: https://keras.io/examples/nlp/ + summary: Industry-strength Natural Language Processing extensions for Keras. + license: Apache-2.0 + license_file: LICENSE + dev_url: https://github.com/keras-team/keras-nlp + doc_url: https://keras.io/examples/nlp/ + +extra: + recipe-maintainers: + - Anselmoo From 0e37b81899bb0f5a3a2c0f62ffa3ae0793586247 Mon Sep 17 00:00:00 2001 From: Anselm Hahn Date: Mon, 26 Dec 2022 21:22:27 +0100 Subject: [PATCH 2/3] Update dependencies Update dependencies --- recipes/keras-nlp/meta.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/recipes/keras-nlp/meta.yaml b/recipes/keras-nlp/meta.yaml index 59b4f40cd739d..1431f1ab7b8c4 100644 --- a/recipes/keras-nlp/meta.yaml +++ b/recipes/keras-nlp/meta.yaml @@ -15,22 +15,18 @@ build: requirements: host: - - python + - python >=3.7 - pip run: - - python + - python >=3.7 - absl-py - numpy - packaging - - tensorflow # [not osx] + - tensorflow >=2.0 # [not osx] test: imports: - examples - commands: - - pip check - requires: - - pip about: home: https://keras.io/examples/nlp/ From c0f781e465b3f92972dd635b9a3d52765ae3cc0e Mon Sep 17 00:00:00 2001 From: Anselm Hahn Date: Mon, 26 Dec 2022 21:30:35 +0100 Subject: [PATCH 3/3] Add `noarch: python` Add `noarch: python` --- recipes/keras-nlp/meta.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/keras-nlp/meta.yaml b/recipes/keras-nlp/meta.yaml index 1431f1ab7b8c4..2d5d8b751ca31 100644 --- a/recipes/keras-nlp/meta.yaml +++ b/recipes/keras-nlp/meta.yaml @@ -10,6 +10,7 @@ source: sha256: 44723deed5c271078cae48ca91cf8e8f6c9ffe85e01a52aee17d02366de959a5 build: + noarch: python script: {{ PYTHON }} -m pip install . -vv number: 0 @@ -22,7 +23,7 @@ requirements: - absl-py - numpy - packaging - - tensorflow >=2.0 # [not osx] + - tensorflow >=2.0 test: imports: