mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
parent
447e3f0245
commit
bbc3e3015e
1 changed files with 20 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/AntonOsika/gpt-engineer/archive/refs/tags/v{{version}}.tar.gz
|
# 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
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
|
@ -8,7 +10,7 @@ versions:
|
||||||
display-name: GPT Engineer
|
display-name: GPT Engineer
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
python.org: '>=3<3.12'
|
python.org: '~3.11'
|
||||||
tea.xyz: ^0
|
tea.xyz: ^0
|
||||||
|
|
||||||
entrypoint: tea ./entrypoint.sh
|
entrypoint: tea ./entrypoint.sh
|
||||||
|
@ -16,12 +18,27 @@ entrypoint: tea ./entrypoint.sh
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
gnu.org/patch: '*'
|
gnu.org/patch: '*'
|
||||||
|
python-poetry.org: '*'
|
||||||
script:
|
script:
|
||||||
# https://github.com/AntonOsika/gpt-engineer/issues/204
|
# https://github.com/AntonOsika/gpt-engineer/issues/204
|
||||||
- run: patch -p1 < props/main.py.patch
|
- run: patch -p1 < props/main.py.patch
|
||||||
if: =0.0.3
|
if: =0.0.3
|
||||||
|
|
||||||
- python-venv.sh {{prefix}}/bin/gpt-engineer
|
# 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"
|
||||||
|
python-venv-stubber.sh gpt-engineer
|
||||||
|
if: '>=0.2.1'
|
||||||
|
|
||||||
|
- run: python-venv.sh {{prefix}}/bin/gpt-engineer
|
||||||
|
if: '<0.2.1'
|
||||||
|
|
||||||
# https://github.com/AntonOsika/gpt-engineer/issues/204
|
# https://github.com/AntonOsika/gpt-engineer/issues/204
|
||||||
- run: cp -a identity {{prefix}}
|
- run: cp -a identity {{prefix}}
|
||||||
|
|
Loading…
Reference in a new issue