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

54 lines
1.4 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
bkpyvenv seal --engine=poetry {{prefix}} gpt-engineer
2023-12-11 21:58:18 +03:00
if: '>=0.2.1'
- run: |
bkpyvenv stage {{prefix}} {{version}}
{{prefix}}/venv/bin/pip install .
bkpyvenv seal {{prefix}} 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
- cp props/entrypoint.sh {{prefix}}
provides:
- bin/gpt-engineer
test:
qa-required: true
script:
- gpt-engineer --help
# verifies that python cannot have been available to gpt-engineer in any
# other way than via pkgx in the commands pkgx shim
- if command -v python; then exit 1; fi