2023-11-29 23:44:16 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/langchain-ai/langchain/archive/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
2023-12-19 01:57:34 +03:00
|
|
|
|
2023-11-29 23:44:16 +03:00
|
|
|
versions:
|
|
|
|
github: langchain-ai/langchain
|
2023-12-19 01:57:34 +03:00
|
|
|
|
2023-11-29 23:44:16 +03:00
|
|
|
dependencies:
|
|
|
|
python.org: ^3.12
|
|
|
|
docker.com/compose: ^2.23
|
2023-12-19 01:57:34 +03:00
|
|
|
|
2023-11-29 23:44:16 +03:00
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
PYTHONPATH: $PYTHONPATH:{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages
|
2023-12-19 01:57:34 +03:00
|
|
|
|
2023-11-29 23:44:16 +03:00
|
|
|
build:
|
|
|
|
working-directory: libs/langchain
|
|
|
|
script:
|
|
|
|
- python -m pip install --prefix={{prefix}} .
|
2023-12-19 01:57:34 +03:00
|
|
|
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
2023-11-29 23:44:16 +03:00
|
|
|
working-directory: ${{prefix}}/lib
|
2023-12-19 01:57:34 +03:00
|
|
|
- run: sed -i'' "s|{{deps.python.org.prefix}}/bin/python|/usr/bin/env python|g" ./*
|
2023-11-29 23:44:16 +03:00
|
|
|
working-directory: ${{prefix}}/bin
|
|
|
|
env:
|
|
|
|
linux:
|
|
|
|
MULTIDICT_NO_EXTENSIONS: 1
|
2023-12-19 01:57:34 +03:00
|
|
|
|
2023-11-29 23:44:16 +03:00
|
|
|
provides:
|
|
|
|
- bin/f2py
|
|
|
|
- bin/jsondiff
|
|
|
|
- bin/jsonpatch
|
|
|
|
- bin/jsonpointer
|
|
|
|
- bin/langchain-server
|
|
|
|
- bin/langsmith
|
|
|
|
- bin/normalizer
|
2023-12-19 01:57:34 +03:00
|
|
|
|
2023-11-29 23:44:16 +03:00
|
|
|
test:
|
|
|
|
- python -c "import langchain; print(langchain.__version__)" | grep {{version}}
|
|
|
|
- killall langsmith || true
|
|
|
|
- langsmith start &
|
|
|
|
- sleep 1
|
|
|
|
- langsmith status
|
|
|
|
- langsmith stop
|