From 0860e7b30d1fe4467947f954d2e5660a9ef55328 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 15 Jul 2024 08:40:32 +0100 Subject: [PATCH] do not package tests/ --- setup.py | 2 +- {aider/tests => tests}/__init__.py | 0 {aider/tests => tests}/test_coder.py | 0 {aider/tests => tests}/test_commands.py | 0 {aider/tests => tests}/test_editblock.py | 0 {aider/tests => tests}/test_help.py | 0 {aider/tests => tests}/test_io.py | 0 {aider/tests => tests}/test_main.py | 0 {aider/tests => tests}/test_models.py | 0 {aider/tests => tests}/test_repo.py | 0 {aider/tests => tests}/test_repomap.py | 0 {aider/tests => tests}/test_sendchat.py | 0 {aider/tests => tests}/test_udiff.py | 0 {aider/tests => tests}/test_urls.py | 0 {aider/tests => tests}/test_wholefile.py | 0 15 files changed, 1 insertion(+), 1 deletion(-) rename {aider/tests => tests}/__init__.py (100%) rename {aider/tests => tests}/test_coder.py (100%) rename {aider/tests => tests}/test_commands.py (100%) rename {aider/tests => tests}/test_editblock.py (100%) rename {aider/tests => tests}/test_help.py (100%) rename {aider/tests => tests}/test_io.py (100%) rename {aider/tests => tests}/test_main.py (100%) rename {aider/tests => tests}/test_models.py (100%) rename {aider/tests => tests}/test_repo.py (100%) rename {aider/tests => tests}/test_repomap.py (100%) rename {aider/tests => tests}/test_sendchat.py (100%) rename {aider/tests => tests}/test_udiff.py (100%) rename {aider/tests => tests}/test_urls.py (100%) rename {aider/tests => tests}/test_wholefile.py (100%) diff --git a/setup.py b/setup.py index 4edf1a147..cd34e2384 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ with open("README.md", "r", encoding="utf-8") as f: # long_description = re.sub(r"\n- \[.*\]\(.*\)", "", long_description) # Discover packages, plus the website -packages = find_packages(exclude=["benchmark"]) + ["aider.website"] +packages = find_packages(exclude=["benchmark", "tests"]) + ["aider.website"] print("Discovered packages:", packages) extras = "dev hf-embed browser playwright".split() diff --git a/aider/tests/__init__.py b/tests/__init__.py similarity index 100% rename from aider/tests/__init__.py rename to tests/__init__.py diff --git a/aider/tests/test_coder.py b/tests/test_coder.py similarity index 100% rename from aider/tests/test_coder.py rename to tests/test_coder.py diff --git a/aider/tests/test_commands.py b/tests/test_commands.py similarity index 100% rename from aider/tests/test_commands.py rename to tests/test_commands.py diff --git a/aider/tests/test_editblock.py b/tests/test_editblock.py similarity index 100% rename from aider/tests/test_editblock.py rename to tests/test_editblock.py diff --git a/aider/tests/test_help.py b/tests/test_help.py similarity index 100% rename from aider/tests/test_help.py rename to tests/test_help.py diff --git a/aider/tests/test_io.py b/tests/test_io.py similarity index 100% rename from aider/tests/test_io.py rename to tests/test_io.py diff --git a/aider/tests/test_main.py b/tests/test_main.py similarity index 100% rename from aider/tests/test_main.py rename to tests/test_main.py diff --git a/aider/tests/test_models.py b/tests/test_models.py similarity index 100% rename from aider/tests/test_models.py rename to tests/test_models.py diff --git a/aider/tests/test_repo.py b/tests/test_repo.py similarity index 100% rename from aider/tests/test_repo.py rename to tests/test_repo.py diff --git a/aider/tests/test_repomap.py b/tests/test_repomap.py similarity index 100% rename from aider/tests/test_repomap.py rename to tests/test_repomap.py diff --git a/aider/tests/test_sendchat.py b/tests/test_sendchat.py similarity index 100% rename from aider/tests/test_sendchat.py rename to tests/test_sendchat.py diff --git a/aider/tests/test_udiff.py b/tests/test_udiff.py similarity index 100% rename from aider/tests/test_udiff.py rename to tests/test_udiff.py diff --git a/aider/tests/test_urls.py b/tests/test_urls.py similarity index 100% rename from aider/tests/test_urls.py rename to tests/test_urls.py diff --git a/aider/tests/test_wholefile.py b/tests/test_wholefile.py similarity index 100% rename from aider/tests/test_wholefile.py rename to tests/test_wholefile.py