mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
update pyptoject and revert suppress KeyboardInterrupt (#376)
* build: update pyptoject * revert: suppress KeyboardInterrupt * fix: imports
This commit is contained in:
@@ -6,7 +6,7 @@ name = "gpt-engineer"
|
|||||||
version = "0.0.7"
|
version = "0.0.7"
|
||||||
description = "Specify what you want it to build, the AI asks for clarification, and then builds it."
|
description = "Specify what you want it to build, the AI asks for clarification, and then builds it."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3"
|
requires-python = ">=3.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
'black == 23.3.0',
|
'black == 23.3.0',
|
||||||
'click >= 8.0.0',
|
'click >= 8.0.0',
|
||||||
@@ -21,6 +21,16 @@ dependencies = [
|
|||||||
'dataclasses-json == 0.5.7',
|
'dataclasses-json == 0.5.7',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||||
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
gpt-engineer = 'gpt_engineer.main:app'
|
gpt-engineer = 'gpt_engineer.main:app'
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
# list all folders in benchmark folder
|
# list all folders in benchmark folder
|
||||||
# for each folder, run the benchmark
|
# for each folder, run the benchmark
|
||||||
|
|
||||||
import contextlib
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
from itertools import islice
|
from itertools import islice
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@@ -60,7 +60,7 @@ def main(
|
|||||||
print(f.read())
|
print(f.read())
|
||||||
print()
|
print()
|
||||||
|
|
||||||
with contextlib.suppress(KeyboardInterrupt):
|
try:
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
"python",
|
"python",
|
||||||
@@ -71,6 +71,8 @@ def main(
|
|||||||
"evaluate",
|
"evaluate",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user