From 196361dfcd6ab8a433682c18644f3b6f696cf782 Mon Sep 17 00:00:00 2001 From: Plamen Ivanov <65338982+k1lgor@users.noreply.github.com> Date: Sun, 25 Jun 2023 17:39:40 +0300 Subject: [PATCH] update pyptoject and revert suppress KeyboardInterrupt (#376) * build: update pyptoject * revert: suppress KeyboardInterrupt * fix: imports --- pyproject.toml | 12 +++++++++++- scripts/benchmark.py | 6 ++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 010649e..e03cfbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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' diff --git a/scripts/benchmark.py b/scripts/benchmark.py index ef3434f..7c6f3c0 100644 --- a/scripts/benchmark.py +++ b/scripts/benchmark.py @@ -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__":