Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.28 KB

DEVELOP.md

File metadata and controls

57 lines (47 loc) · 1.28 KB

Development Documentation

Set up sandbox

git clone https://github.com/crate/langchain-cratedb.git
cd langchain-cratedb
poetry install --with lint,test,typing

Run CrateDB

docker run --rm \
  --publish=4200:4200 --publish=5432:5432 --env=CRATE_HEAP_SIZE=2g \
  crate:latest -Cdiscovery.type=single-node

Validate codebase

Run linters and software tests.

make check

Format code.

make format

Software tests

Run tests selectively.

pytest -vvv tests/test_docs.py tests/test_examples.py
pytest -vvv -k standard
pytest -vvv -k cratedb

Release

poetry build
twine upload --skip-existing dist/*{.tar.gz,.whl}

Genesis

This package has been bootstrapped using langchain-cli integration new, see also How to implement an integration package.

Other fragments have been derived from langchain-datastax, langchain-mongodb, and langchain-postgres.