From 0f8d1d71463b0ca670a2e78ff4a058d573439a47 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 3 Jan 2023 16:16:47 +0100 Subject: [PATCH 1/2] build: Exclude tests from being recognized as package --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e5fcaba..8fdd3a6 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ 'author': re.match(r'(.*) <(.*)>', project.__author__).groups()[0], # type: ignore[union-attr] 'author_email': re.match(r'(.*) <(.*)>', project.__author__).groups()[1], # type: ignore[union-attr] 'url': project.__url__, - 'packages': find_packages(), + 'packages': find_packages(exclude=["tests"]), 'classifiers': [ 'Environment :: Console', 'Topic :: Internet', From c1726686a8771fc594cfbcd5d716e1086c7e2bb6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Jan 2023 15:22:21 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8fdd3a6..c4a7625 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ 'author': re.match(r'(.*) <(.*)>', project.__author__).groups()[0], # type: ignore[union-attr] 'author_email': re.match(r'(.*) <(.*)>', project.__author__).groups()[1], # type: ignore[union-attr] 'url': project.__url__, - 'packages': find_packages(exclude=["tests"]), + 'packages': find_packages(exclude=['tests']), 'classifiers': [ 'Environment :: Console', 'Topic :: Internet',