mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fix(vanna) (#5453)
* fix(vanna) closes #5427 closes #5447 closes #5213 (handled at 0.1.1's release) * this can't be correct
This commit is contained in:
parent
663d37d3db
commit
4b2c87c463
|
@ -8,16 +8,14 @@ versions:
|
||||||
github: llvm/llvm-project
|
github: llvm/llvm-project
|
||||||
strip: /^llvmorg-/
|
strip: /^llvmorg-/
|
||||||
|
|
||||||
dependencies:
|
|
||||||
linux:
|
|
||||||
python.org: ~3.11
|
|
||||||
perl.org: '*'
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cmake.org: '*'
|
cmake.org: '*'
|
||||||
llvm.org: '*'
|
llvm.org: '*'
|
||||||
gnu.org/wget: '*'
|
gnu.org/wget: '*'
|
||||||
|
linux:
|
||||||
|
python.org: ~3.11
|
||||||
|
perl.org: '*'
|
||||||
script: |
|
script: |
|
||||||
mkdir -p src
|
mkdir -p src
|
||||||
find . -maxdepth 1 ! -name '.' ! -name 'src' -exec mv {} ./src/ \;
|
find . -maxdepth 1 ! -name '.' ! -name 'src' -exec mv {} ./src/ \;
|
||||||
|
|
|
@ -9,19 +9,30 @@ versions:
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
python.org: ^3.12
|
python.org: ^3.12
|
||||||
|
linux:
|
||||||
|
openmp.llvm.org: 17 # needed by chromadb
|
||||||
|
|
||||||
runtime:
|
runtime:
|
||||||
env:
|
env:
|
||||||
PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH
|
PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH
|
||||||
|
|
||||||
build:
|
build:
|
||||||
- python -m pip install . --prefix={{prefix}}
|
script:
|
||||||
# additional requirements as of 0.1.0
|
- python -m pip install . --prefix={{prefix}}
|
||||||
- run: python -m pip install openai mistralai --prefix={{prefix}}
|
# additional requirements as of 0.1.0
|
||||||
if: '>=0.1'
|
- 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'
|
||||||
|
|
||||||
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
||||||
working-directory: ${{prefix}}/lib
|
working-directory: ${{prefix}}/lib
|
||||||
|
env:
|
||||||
|
linux:
|
||||||
|
CC: clang
|
||||||
|
CXX: clang++
|
||||||
|
LD: clang
|
||||||
|
|
||||||
test:
|
test:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -31,6 +42,5 @@ test:
|
||||||
OPENAI_API_KEY: FAKE_API_KEY
|
OPENAI_API_KEY: FAKE_API_KEY
|
||||||
MISTRAL_API_KEY: FAKE_API_KEY
|
MISTRAL_API_KEY: FAKE_API_KEY
|
||||||
script:
|
script:
|
||||||
- pip install pytest
|
|
||||||
- curl -L "https://raw.githubusercontent.com/vanna-ai/vanna/main/tests/test_vanna.py" -o test_vanna.py
|
- curl -L "https://raw.githubusercontent.com/vanna-ai/vanna/main/tests/test_vanna.py" -o test_vanna.py
|
||||||
- python test_vanna.py
|
- python test_vanna.py
|
||||||
|
|
Loading…
Reference in a new issue