From 26ded0e09d36956e33477fe98acccf2ed7eddd63 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Fri, 7 Jun 2024 00:41:03 -0500 Subject: [PATCH 1/3] Export todo function from module --- makenew_pypackage/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makenew_pypackage/__init__.py b/makenew_pypackage/__init__.py index f9d7700..248a45f 100644 --- a/makenew_pypackage/__init__.py +++ b/makenew_pypackage/__init__.py @@ -1,3 +1,5 @@ """ Package skeleton for a Python module. """ + +from .todo import todo as todo From c5d1027875d0eb853f6c08770068d091952e09d3 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Fri, 7 Jun 2024 00:43:23 -0500 Subject: [PATCH 2/3] Add test directory --- test/__init__.py | 0 test/todo_test.py | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 test/__init__.py create mode 100644 test/todo_test.py diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/todo_test.py b/test/todo_test.py new file mode 100644 index 0000000..9b1214f --- /dev/null +++ b/test/todo_test.py @@ -0,0 +1,5 @@ +from makenew_pypackage import todo + + +def test_todo(): + assert todo(True) is True From 65f7f5d855a2537f50dddfd55fa138a65514c597 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Fri, 7 Jun 2024 00:46:38 -0500 Subject: [PATCH 3/3] Exclude tests in build --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index a16724b..ffdbabb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ license = "MIT" readme = "README.rst" homepage = "https://github.com/makenew/pypackage" repository = "https://github.com/makenew/pypackage" +exclude = ["**/*_test.py"] [tool.poetry.dependencies] python = "^3.11.0"