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
|
|
|
|
|
2023-07-12 18:48:45 +03:00
|
|
|
|
display-name: GPT Engineer
|
|
|
|
|
|
2023-06-20 18:48:16 +03:00
|
|
|
|
dependencies:
|
2024-01-04 10:06:19 +03:00
|
|
|
|
pkgx.sh: ^1
|
2023-06-20 18:48:16 +03:00
|
|
|
|
|
2024-01-04 10:06:19 +03:00
|
|
|
|
entrypoint: pkgx ./entrypoint.sh
|
2023-06-20 18:48:16 +03:00
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
dependencies:
|
2024-01-04 10:06:19 +03:00
|
|
|
|
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: |
|
2024-01-04 10:06:19 +03:00
|
|
|
|
bkpyvenv stage --engine=poetry {{prefix}} {{version}}
|
2023-12-11 21:58:18 +03:00
|
|
|
|
poetry install --with=experimental
|
2024-01-04 10:06:19 +03:00
|
|
|
|
bkpyvenv seal --engine=poetry {{prefix}} gpt-engineer
|
2023-12-11 21:58:18 +03:00
|
|
|
|
if: '>=0.2.1'
|
|
|
|
|
|
2024-01-04 10:06:19 +03:00
|
|
|
|
- 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
|
2024-01-04 10:44:34 +03:00
|
|
|
|
# can’t easily do more without an Open AI key
|
|
|
|
|
script: gpt-engineer --help
|