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

Adding neo4j-rust-ext recipe #28146

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions recipes/neo4j-python-driver-rust-ext/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rust_compiler_version:
- "1.81"
63 changes: 63 additions & 0 deletions recipes/neo4j-python-driver-rust-ext/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{% set pypi_name = "neo4j-rust-ext" %}
{% set name = "neo4j-python-driver-rust-ext" %}
{% set version = "5.26.0.0" %}
{% set python_min = "3.7" %}

{% set driver_target_version = ".".join(version.split(".")[:3]) %}
{% set docs_version = ".".join(version.split(".")[:2]) %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://pypi.org/packages/source/{{ pypi_name[0] }}/{{ pypi_name }}/{{ pypi_name | replace("-", "_") }}-{{ version }}.tar.gz
sha256: 4fb612d6b24cb9417f404189b4cd76f232271a3b34dc1973fde9f18e8e84bee5

build:
script:
- cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
- {{ PYTHON }} -m pip install . -vv
number: 0

requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- {{ compiler('c') }}
- {{ stdlib("c") }}
- {{ compiler('cxx') }}
- {{ compiler('rust') }}
# Package originally wants matruin ~=1.6.0, but that's not available for windows on conda-forge
- maturin ~=1.7.0
- cargo-bundle-licenses
host:
- python
- pip
- maturin ~=1.7.0
run:
- python
- neo4j-python-driver =={{ driver_target_version }}

test:
requires:
- python
- pip
commands:
- pip check
- python -c "import neo4j._codec.packstream; assert(neo4j._codec.packstream.RUST_AVAILABLE is True)"

about:
home: https://neo4j.com/
summary: Rust Extensions for a Faster Neo4j Bolt Driver for Python
license: Apache-2.0
license_family: Apache
license_file:
- LICENSE.txt
- THIRDPARTY.yml
doc_url: https://neo4j.com/docs/api/python-driver/{{ docs_version }}/
dev_url: https://github.com/neo4j/neo4j-python-driver-rust-ext

extra:
recipe-maintainers:
- robsdedude