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
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
python.org: ^3.12
|
|
|
|
|
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH
|
|
|
|
|
|
|
|
build:
|
|
|
|
- python -m pip install . --prefix={{prefix}}
|
2024-02-21 22:09:39 +03:00
|
|
|
# additional requirements as of 0.1.0
|
|
|
|
- run: python -m pip install openai mistralai --prefix={{prefix}}
|
|
|
|
if: '>=0.1'
|
|
|
|
|
2024-01-17 18:15:33 +03:00
|
|
|
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
|
|
|
working-directory: ${{prefix}}/lib
|
|
|
|
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
curl.se: '*'
|
2024-02-21 22:09:39 +03:00
|
|
|
env:
|
|
|
|
VANNA_API_KEY: FAKE_API_KEY
|
|
|
|
OPENAI_API_KEY: FAKE_API_KEY
|
|
|
|
MISTRAL_API_KEY: FAKE_API_KEY
|
2024-01-17 18:15:33 +03:00
|
|
|
script:
|
|
|
|
- pip install pytest
|
|
|
|
- curl -L "https://raw.githubusercontent.com/vanna-ai/vanna/main/tests/test_vanna.py" -o test_vanna.py
|
2024-02-21 22:09:39 +03:00
|
|
|
- python test_vanna.py
|