From 58152c5e34994d2fd2d933aaf456220b35b833dc Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Sun, 24 Nov 2024 15:53:30 -0800 Subject: [PATCH 1/6] Add rethinkdb --- recipes/rethinkdb-python/meta.yaml | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 recipes/rethinkdb-python/meta.yaml diff --git a/recipes/rethinkdb-python/meta.yaml b/recipes/rethinkdb-python/meta.yaml new file mode 100644 index 0000000000000..0ffc495b8b1c8 --- /dev/null +++ b/recipes/rethinkdb-python/meta.yaml @@ -0,0 +1,48 @@ +{% set name = "rethinkdb-python" %} +{% set version = "2.4.10" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/rethinkdb/rethinkdb-{{ version }}.tar.gz + sha256: 55ecf7447dc11fec0e2ce9aac4ba4c0b57fdc5c9c57d77ee673d59d245c74666 + +build: + number: 0 + script: {{ PYTHON }} -m pip install . -vv + skip: true # [win] + +requirements: + host: + - looseversion + - pip + - python + - setuptools + - six + run: + - looseversion + - python + - six + - tornado + - trio + +test: + imports: + - rethinkdb + commands: + - pip check + requires: + - pip + - python + +about: + home: https://rethinkdb.com/api/python/ + summary: Python driver for RethinkDB + license: Apache-2.0 + license_file: LICENSE + +extra: + recipe-maintainers: + - jeongseok-meta From bb644c528def0bc8113305ec8d044f6a625f1cb9 Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Mon, 25 Nov 2024 07:45:34 -0800 Subject: [PATCH 2/6] Make as noarch package --- recipes/rethinkdb-python/meta.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/recipes/rethinkdb-python/meta.yaml b/recipes/rethinkdb-python/meta.yaml index 0ffc495b8b1c8..445be203ba957 100644 --- a/recipes/rethinkdb-python/meta.yaml +++ b/recipes/rethinkdb-python/meta.yaml @@ -1,5 +1,6 @@ {% set name = "rethinkdb-python" %} {% set version = "2.4.10" %} +{% set python_min = python_min|default("3.6") %} package: name: {{ name|lower }} @@ -12,18 +13,19 @@ source: build: number: 0 script: {{ PYTHON }} -m pip install . -vv - skip: true # [win] + noarch: python requirements: host: - looseversion - pip - - python + - python {{ python_min }} - setuptools - six run: + - __unix # to skip win, as a noarch package - looseversion - - python + - python >={{ python_min }} - six - tornado - trio @@ -35,7 +37,7 @@ test: - pip check requires: - pip - - python + - python {{ python_min }} about: home: https://rethinkdb.com/api/python/ From 12e100ed29b3dec9c938a32d98a6a5a5a917f370 Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Mon, 25 Nov 2024 19:15:18 -0800 Subject: [PATCH 3/6] Add entry points --- recipes/rethinkdb-python/meta.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes/rethinkdb-python/meta.yaml b/recipes/rethinkdb-python/meta.yaml index 445be203ba957..d39a602445607 100644 --- a/recipes/rethinkdb-python/meta.yaml +++ b/recipes/rethinkdb-python/meta.yaml @@ -14,6 +14,13 @@ build: number: 0 script: {{ PYTHON }} -m pip install . -vv noarch: python + entry_points: + - rethinkdb-import = rethinkdb._import:main + - rethinkdb-dump = rethinkdb._dump:main + - rethinkdb-export = rethinkdb._export:main + - rethinkdb-restore = rethinkdb._restore:main + - rethinkdb-index-rebuild = rethinkdb._index_rebuild:main + - rethinkdb-repl = rethinkdb.__main__:startInterpreter requirements: host: @@ -23,7 +30,6 @@ requirements: - setuptools - six run: - - __unix # to skip win, as a noarch package - looseversion - python >={{ python_min }} - six From 107283972b8514a87d2bda84ea2b5efe857ff5e5 Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Mon, 25 Nov 2024 20:54:46 -0800 Subject: [PATCH 4/6] Add __unix --- recipes/rethinkdb-python/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/rethinkdb-python/meta.yaml b/recipes/rethinkdb-python/meta.yaml index d39a602445607..c8e3fff5cecb2 100644 --- a/recipes/rethinkdb-python/meta.yaml +++ b/recipes/rethinkdb-python/meta.yaml @@ -30,6 +30,7 @@ requirements: - setuptools - six run: + - __unix # to skip win, as a noarch package - looseversion - python >={{ python_min }} - six From 1af75e82a17994d09f69123b537777aef4eb8371 Mon Sep 17 00:00:00 2001 From: "Jeongseok (JS) Lee" <142548112+jeongseok-meta@users.noreply.github.com> Date: Tue, 26 Nov 2024 00:53:19 -0800 Subject: [PATCH 5/6] Update recipes/rethinkdb-python/meta.yaml Co-authored-by: Filipe --- recipes/rethinkdb-python/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/rethinkdb-python/meta.yaml b/recipes/rethinkdb-python/meta.yaml index c8e3fff5cecb2..a2e450aeb3420 100644 --- a/recipes/rethinkdb-python/meta.yaml +++ b/recipes/rethinkdb-python/meta.yaml @@ -12,7 +12,7 @@ source: build: number: 0 - script: {{ PYTHON }} -m pip install . -vv + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation noarch: python entry_points: - rethinkdb-import = rethinkdb._import:main From 068e4976710b8cd990ccf1f504b8bd13b29d4499 Mon Sep 17 00:00:00 2001 From: "Jeongseok (JS) Lee" <142548112+jeongseok-meta@users.noreply.github.com> Date: Tue, 26 Nov 2024 07:32:26 -0800 Subject: [PATCH 6/6] Update recipes/rethinkdb-python/meta.yaml Co-authored-by: Uwe L. Korn --- recipes/rethinkdb-python/meta.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/rethinkdb-python/meta.yaml b/recipes/rethinkdb-python/meta.yaml index a2e450aeb3420..45046c31f4f42 100644 --- a/recipes/rethinkdb-python/meta.yaml +++ b/recipes/rethinkdb-python/meta.yaml @@ -1,6 +1,5 @@ {% set name = "rethinkdb-python" %} {% set version = "2.4.10" %} -{% set python_min = python_min|default("3.6") %} package: name: {{ name|lower }}