pantry/projects/vanna.ai/package.yml

71 lines
2.2 KiB
YAML
Raw Normal View History

2024-01-17 18:15:33 +03:00
distributable:
url: git+https://github.com/vanna-ai/vanna.git
ref: ${{version.tag}}
display-name: Vanna
versions:
github: vanna-ai/vanna
2024-03-06 04:45:57 +03:00
# /Users/runner/work/pantry/pantry/testbeds/vanna.ai-0.2.1.sh: line 38: 4897 Illegal instruction: 4 python test_vanna.py
platforms:
- darwin/aarch64
- linux
2024-01-17 18:15:33 +03:00
dependencies:
python.org: ^3.12
linux:
openmp.llvm.org: 17 # needed by chromadb
2024-01-17 18:15:33 +03:00
runtime:
env:
PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH
build:
script:
- python -m pip install . --prefix={{prefix}}
# additional requirements as of 0.1.0
- run: python -m pip install openai mistralai --prefix={{prefix}}
if: '>=0.1'
# additional requirements as of 0.2.0
- run: python -m pip install chromadb python-dotenv --prefix={{prefix}}
if: '>=0.2'
2024-03-27 21:56:56 +03:00
# additional requirements as of 0.3.0
- run: python -m pip install anthropic --prefix={{prefix}}
2024-04-16 22:34:32 +03:00
if: '>=0.3'
# additional requirements as of 0.4.0
- run: python -m pip install google-generativeai --prefix={{prefix}}
2024-06-07 19:04:44 +03:00
if: '>=0.4'
2024-04-17 16:02:16 +03:00
# additional requirements as of 0.4.1
- run: python -m pip install qdrant-client fastembed --prefix={{prefix}}
2024-06-07 19:04:44 +03:00
if: '>=0.4.1'
# protobuf ^5.27 (transient dep) currently not playing nicely with other components
- run: |
rm -rf ${{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages/proto
python -m pip install proto-plus==1.24.0.dev1 --prefix={{prefix}}
if: 0.6.0
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
working-directory: ${{prefix}}/lib
env:
linux:
CC: clang
CXX: clang++
LD: clang
2024-01-17 18:15:33 +03:00
test:
dependencies:
curl.se: '*'
env:
VANNA_API_KEY: FAKE_API_KEY
OPENAI_API_KEY: FAKE_API_KEY
MISTRAL_API_KEY: FAKE_API_KEY
2024-03-27 21:56:56 +03:00
ANTHROPIC_API_KEY: FAKE_API_KEY
2024-04-05 18:30:04 +03:00
SNOWFLAKE_ACCOUNT: FAKE_ACCOUNT
SNOWFLAKE_USERNAME: FAKE_USERNAME
SNOWFLAKE_PASSWORD: FAKE_PASSWORD
2024-04-16 22:34:32 +03:00
GEMINI_API_KEY: FAKE_API_KEY
2024-01-17 18:15:33 +03:00
script:
2024-06-07 19:04:44 +03:00
- curl -L "https://raw.githubusercontent.com/vanna-ai/vanna/{{ version.tag }}/tests/test_vanna.py" -o test_vanna.py
- python test_vanna.py