pantry/projects/agpt.co/package.yml

44 lines
1.2 KiB
YAML
Raw Normal View History

2023-05-08 16:39:44 +03:00
distributable:
url: https://github.com/Significant-Gravitas/Auto-GPT/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: Significant-Gravitas/Auto-GPT
platforms:
- darwin
dependencies:
python.org: ^3.10
redis.io: ^7
build:
dependencies:
tea.xyz/gx/cc: c99
script:
2023-05-09 00:38:04 +03:00
# `pip install` seems to miss some vital .json files, so we must manually copy
# we copy everything as we're not 100% sure which files are missing
# we do this first so any file movements from `pip install` takes precedence
- run:
cp -R $SRCROOT/autogpt .
working-directory:
${{prefix}}/venv/lib/python{{deps.python.org.version.marketing}}/site-packages
2023-05-08 16:39:44 +03:00
- python-venv.py {{prefix}}/bin/auto-gpt --requirements-txt
2023-05-08 16:39:44 +03:00
# still pretty new and thus provides no executable, so we made one
- cp props/auto-gpt {{prefix}}/venv/bin
# this is broken and means any environment variable that is set is ignored
- sed -i.bak s/^OPENAI_API_KEY=your-openai-api-key$//g .env.template
- |
mkdir {{prefix}}/share
cp .env.template {{prefix}}/share/env.template
2023-05-08 16:39:44 +03:00
provides:
- bin/auto-gpt
test:
auto-gpt --help