Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add connectorx #19136

Merged
merged 3 commits into from
Jun 11, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions recipes/connectorx/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -ex

cp $SRC_DIR/README.md $SRC_DIR/connectorx-python/README.md
cp $SRC_DIR/LICENSE $SRC_DIR/connectorx-python/LICENSE

pushd $SRC_DIR/connectorx-python
poetry install
timkpaine marked this conversation as resolved.
Show resolved Hide resolved
popd

maturin build --no-sdist --release --strip --manylinux off --interpreter="${PYTHON}" -m connectorx-python/Cargo.toml

"${PYTHON}" -m pip install $SRC_DIR/connectorx-python/target/wheels/*.whl --no-deps -vv

cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
2 changes: 2 additions & 0 deletions recipes/connectorx/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
channel_sources:
- conda-forge/label/rust_dev,conda-forge
58 changes: 58 additions & 0 deletions recipes/connectorx/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{% set name = "connectorx" %}
{% set version = "0.3.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
- url: https://github.com/sfu-db/connector-x/archive/refs/tags/v{{ version }}.tar.gz
sha256: c8d13ac38d9da5793f8ccb0c3777761bcfaa89f0f18cbf0597d0bd4f347612c9

build:
number: 0
skip: true # [py<37 or win]

requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- crossenv # [build_platform != target_platform]
- {{ compiler('c') }}
- {{ compiler('rust') }}
- posix # [win]
- cmake
- make # [unix]
- cargo-bundle-licenses
host:
- python
- pip
- poetry
timkpaine marked this conversation as resolved.
Show resolved Hide resolved
- maturin >=0.12.11,<0.13
run:
- python
- numpy >=1.21.5
- libzlib
timkpaine marked this conversation as resolved.
Show resolved Hide resolved

test:
imports:
- connectorx
commands:
- pip check
requires:
- pip

about:
home: https://github.com/sfu-db/connector-x
license: MIT
license_family: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
summary: "Fastest library to load data from DB to DataFrames in Rust and Python"
dev_url: https://github.com/sfu-db/connector-x

extra:
recipe-maintainers:
- timkpaine
- wangxiaoying