From 15234ef43afc0fa55275fa8b27baf2625ab79bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Motheu?= <66940960+Logic-py@users.noreply.github.com> Date: Wed, 9 Apr 2025 17:27:52 +0200 Subject: [PATCH 1/2] feat: proper package mode to false (#92) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Loïc Motheu <66940960+loicatNGT@users.noreply.github.com> --- pyproject.toml | 4 +++- src/{python_template/__init__.py => main.py} | 0 src/python_template/main.py | 25 -------------------- 3 files changed, 3 insertions(+), 26 deletions(-) rename src/{python_template/__init__.py => main.py} (100%) delete mode 100644 src/python_template/main.py diff --git a/pyproject.toml b/pyproject.toml index 6a5da95..b211962 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,11 +5,13 @@ description = "Used to templatize python projects." authors = [{ name = "Loïc Motheu", email = "lmotheu@gmail.com" }] readme = "README.md" requires-python = ">=3.13,<4.0" -package-mode = false dependencies = [ "loguru (>=0.7.3,<0.8.0)" ] +[tool.poetry] +package-mode = false + [tool.poetry.group.dev.dependencies] mypy = "^1.15.0" pre-commit = "^4.2.0" diff --git a/src/python_template/__init__.py b/src/main.py similarity index 100% rename from src/python_template/__init__.py rename to src/main.py diff --git a/src/python_template/main.py b/src/python_template/main.py deleted file mode 100644 index 159d1ac..0000000 --- a/src/python_template/main.py +++ /dev/null @@ -1,25 +0,0 @@ -"""Public module example.""" - -from loguru import logger - - -def example(data: str) -> None: - """Use this docstring as an example for an Example function. - - Args: - data: a string, testing - - Returns: - Nothing - - """ - logger.info(data) - - -if __name__ == "__main__": - logger.info("hello world, test") - - a = 5 - b = 1 - - example(data=str(a + b)) From 4488732fd4e9b59b06f8462e619b91af7a45cc01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Motheu?= <66940960+loicatNGT@users.noreply.github.com> Date: Wed, 9 Apr 2025 17:29:11 +0200 Subject: [PATCH 2/2] chore: bumping version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b211962..04af089 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "python-template" -version = "0.8.0" +version = "0.8.1" description = "Used to templatize python projects." authors = [{ name = "Loïc Motheu", email = "lmotheu@gmail.com" }] readme = "README.md"