2023-06-20 18:48:16 +03:00
|
|
|
distributable:
|
2023-12-11 21:58:18 +03:00
|
|
|
# url format changed in v0.2.1
|
|
|
|
#url: https://github.com/AntonOsika/gpt-engineer/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
url: https://github.com/AntonOsika/gpt-engineer/archive/refs/tags/{{version}}.tar.gz
|
2023-06-20 18:48:16 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: AntonOsika/gpt-engineer
|
|
|
|
|
2023-07-12 18:48:45 +03:00
|
|
|
display-name: GPT Engineer
|
|
|
|
|
2023-06-20 18:48:16 +03:00
|
|
|
dependencies:
|
2023-12-11 21:58:18 +03:00
|
|
|
python.org: '~3.11'
|
2023-10-10 21:44:37 +03:00
|
|
|
tea.xyz: ^0
|
2023-06-20 18:48:16 +03:00
|
|
|
|
2023-10-10 21:44:37 +03:00
|
|
|
entrypoint: tea ./entrypoint.sh
|
2023-06-20 18:48:16 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/patch: '*'
|
2023-12-11 21:58:18 +03:00
|
|
|
python-poetry.org: '*'
|
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
|
|
|
# https://github.com/python-poetry/poetry/issues/1937#issuecomment-983754739
|
|
|
|
- run: |
|
|
|
|
poetry config virtualenvs.create true
|
|
|
|
poetry config virtualenvs.in-project true
|
|
|
|
poetry install --with=experimental
|
|
|
|
poetry build -f sdist
|
|
|
|
tar zxvf dist/gpt_engineer-{{version}}.tar.gz -C .venv/lib/python3.11/site-packages --strip-components=1
|
|
|
|
mkdir -p "{{prefix}}"
|
|
|
|
export VIRTUAL_ENV="{{prefix}}/venv"
|
|
|
|
cp -a .venv "$VIRTUAL_ENV"
|
2023-12-13 18:30:49 +03:00
|
|
|
cp pyproject.toml "$VIRTUAL_ENV"
|
2023-12-11 21:58:18 +03:00
|
|
|
python-venv-stubber.sh gpt-engineer
|
|
|
|
if: '>=0.2.1'
|
|
|
|
|
|
|
|
- run: python-venv.sh {{prefix}}/bin/gpt-engineer
|
|
|
|
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
|