pantry/projects/deepwisdom.ai/package.yml
Jacob Heider e910345810 fix(metagpt)
add OPEN_API_MODEL key to test; convert to `bkpyvenv`.

closes #4704
2024-01-04 14:17:47 -05:00

31 lines
710 B
YAML

distributable:
url: https://github.com/geekan/MetaGPT/archive/v{{version}}.tar.gz
strip-components: 1
display-name: MetaGPT
versions:
github: geekan/MetaGPT
dependencies:
pkgx.sh: ^1
build:
dependencies:
# Python 3.12 ==> ModuleNotFoundError: No module named 'distutils'
python.org: '>=3.9<3.12'
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} metagpt
provides:
- bin/metagpt
test:
env:
OPENAI_API_KEY: metaGptTestKey
OPENAI_API_MODEL: gpt-4-1106-preview
script:
# for more tests we need to set valid OPENAI_API_KEY with gpt-4 access
- metagpt --help | grep 'Run a startup. Be a boss.'