pantry/projects/github.com/AntonOsika/gpt-engineer/package.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

2023-06-20 18:48:16 +03:00
distributable:
2023-12-11 21:58:18 +03:00
# url format changed in v0.2.1
2024-01-04 10:32:25 +03:00
url: https://github.com/AntonOsika/gpt-engineer/archive/refs/tags/{{version.tag}}.tar.gz
2023-06-20 18:48:16 +03:00
strip-components: 1
versions:
github: AntonOsika/gpt-engineer
2024-01-04 10:32:25 +03:00
strip: /v\./ # 0.2.4 onwards are tagged as `v.0.2.4` which is not machine parsable as a version
2023-06-20 18:48:16 +03:00
display-name: GPT Engineer
2023-06-20 18:48:16 +03:00
dependencies:
pkgx.sh: ^1
2023-06-20 18:48:16 +03:00
entrypoint: pkgx ./entrypoint.sh
2023-06-20 18:48:16 +03:00
build:
dependencies:
python.org: ~3.11
python-poetry.org: ^1.7
2023-06-20 18:48:16 +03:00
script:
# https://github.com/AntonOsika/gpt-engineer/issues/204
2023-10-10 21:47:05 +03:00
- run: patch -p1 < props/main.py.patch
if: =0.0.3
2023-06-20 18:48:16 +03:00
2023-12-11 21:58:18 +03:00
- run: |
bkpyvenv stage --engine=poetry {{prefix}} {{version}}
2023-12-11 21:58:18 +03:00
poetry install --with=experimental
2024-02-06 16:16:20 +03:00
bkpyvenv seal --engine=poetry {{prefix}} gpte gpt-engineer
2023-12-11 21:58:18 +03:00
if: '>=0.2.1'
- run: |
bkpyvenv stage {{prefix}} {{version}}
{{prefix}}/venv/bin/pip install .
2024-02-06 16:16:20 +03:00
bkpyvenv seal {{prefix}} gpte gpt-engineer
2023-12-11 21:58:18 +03:00
if: '<0.2.1'
2023-06-20 18:48:16 +03:00
# https://github.com/AntonOsika/gpt-engineer/issues/204
2023-10-10 21:47:05 +03:00
- run: cp -a identity {{prefix}}
if: =0.0.3
2023-06-20 18:48:16 +03:00
provides:
2024-02-06 16:16:20 +03:00
- bin/gpte # only after roughly 0.2.1
2023-06-20 18:48:16 +03:00
- bin/gpt-engineer
test:
qa-required: true
2024-01-04 10:44:34 +03:00
# cant easily do more without an Open AI key
2024-02-06 16:16:20 +03:00
script:
- gpte --help
- gpt-engineer --help