From cf796ca95aba38c5625e3bb37e6a8e8998de4c9c Mon Sep 17 00:00:00 2001 From: Neville Li Date: Thu, 28 Nov 2024 17:08:13 -0500 Subject: [PATCH] Revert "Add cog import alias to test predictors" This reverts commit 9dfa233120a4678cc79039d2b4cfa521b85382c5. --- python/tests/runners/__init__.py | 4 ---- python/tests/schemas/__init__.py | 4 ---- script/schemas.sh | 1 - 3 files changed, 9 deletions(-) delete mode 100644 python/tests/runners/__init__.py delete mode 100644 python/tests/schemas/__init__.py diff --git a/python/tests/runners/__init__.py b/python/tests/runners/__init__.py deleted file mode 100644 index 17b710a..0000000 --- a/python/tests/runners/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -import pathlib -import sys - -sys.path.insert(0, str(pathlib.Path(__file__).absolute().parent.parent / 'coglet' / '_compat')) \ No newline at end of file diff --git a/python/tests/schemas/__init__.py b/python/tests/schemas/__init__.py deleted file mode 100644 index 17b710a..0000000 --- a/python/tests/schemas/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -import pathlib -import sys - -sys.path.insert(0, str(pathlib.Path(__file__).absolute().parent.parent / 'coglet' / '_compat')) \ No newline at end of file diff --git a/script/schemas.sh b/script/schemas.sh index 6171419..48d0dc8 100755 --- a/script/schemas.sh +++ b/script/schemas.sh @@ -12,7 +12,6 @@ cd "$schemas_dir" trap "rm -f predict.py" EXIT for f in *.py; do - [ "$f" != __init__.py ] || continue echo "Generating schema for $(basename "$f")" cp "$f" predict.py uv run --python "$python_version" --with cog python3 -m cog.command.openapi_schema > "$(basename "$f" .py).json"