update pyptoject and revert suppress KeyboardInterrupt (#376)

* build: update pyptoject

* revert: suppress KeyboardInterrupt

* fix: imports
This commit is contained in:
Plamen Ivanov
2023-06-25 17:39:40 +03:00
committed by GitHub
parent ec5dfecba0
commit 196361dfcd
2 changed files with 15 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ name = "gpt-engineer"
version = "0.0.7"
description = "Specify what you want it to build, the AI asks for clarification, and then builds it."
readme = "README.md"
requires-python = ">=3"
requires-python = ">=3.8"
dependencies = [
'black == 23.3.0',
'click >= 8.0.0',
@@ -21,6 +21,16 @@ dependencies = [
'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]
gpt-engineer = 'gpt_engineer.main:app'

View File

@@ -1,9 +1,9 @@
# list all folders in benchmark folder
# for each folder, run the benchmark
import contextlib
import os
import subprocess
import sys
from itertools import islice
from pathlib import Path
@@ -60,7 +60,7 @@ def main(
print(f.read())
print()
with contextlib.suppress(KeyboardInterrupt):
try:
subprocess.run(
[
"python",
@@ -71,6 +71,8 @@ def main(
"evaluate",
],
)
except KeyboardInterrupt:
sys.exit(1)
if __name__ == "__main__":