fix(kaggle)

closes #4774
This commit is contained in:
Jacob Heider 2024-01-08 11:18:51 -05:00 committed by Jacob Heider
parent f75fb1e0e5
commit 826feb6074

View file

@ -4,17 +4,20 @@ distributable:
versions:
github: Kaggle/kaggle-api
dependencies:
python.org: ^3.12
pkgx.sh: ^1
build:
dependencies:
python.org: ^3.12
linux:
llvm.org: '*'
script:
- python-venv.sh {{prefix}}/bin/kaggle
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} kaggle
provides:
- bin/kaggle
test:
script:
- mkdir -p .kaggle
- echo '{"username":"testname","key":"testkey"}' > .kaggle/kaggle.json
- kaggle --version | grep {{version}}
- mkdir -p $HOME/.kaggle
- echo '{"username":"testname","key":"testkey"}' > $HOME/.kaggle/kaggle.json
- kaggle --version | grep {{version}}