From 5048527ac052e1c4ac21895d3736a6b5cd4dd45b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Oct 2025 09:59:55 +0000 Subject: [PATCH 1/2] Initial plan From e817481a0591b39a54a150fdc47b755fc641730d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Oct 2025 10:03:32 +0000 Subject: [PATCH 2/2] Setup Python project with src, pyproject.toml (Poetry), and tests Co-authored-by: VarSamLewis <65926327+VarSamLewis@users.noreply.github.com> --- pyproject.toml | 17 +++++++++++++++++ src/loggingplus/__init__.py | 3 +++ tests/__init__.py | 1 + tests/test_version.py | 8 ++++++++ 4 files changed, 29 insertions(+) create mode 100644 pyproject.toml create mode 100644 src/loggingplus/__init__.py create mode 100644 tests/__init__.py create mode 100644 tests/test_version.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0d9bfc9 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,17 @@ +[tool.poetry] +name = "loggingplus" +version = "0.1.0" +description = "Personal logging utils library" +authors = ["VarSamLewis"] +readme = "README.md" +packages = [{include = "loggingplus", from = "src"}] + +[tool.poetry.dependencies] +python = "^3.8" + +[tool.poetry.group.dev.dependencies] +pytest = "^7.0.0" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" diff --git a/src/loggingplus/__init__.py b/src/loggingplus/__init__.py new file mode 100644 index 0000000..40bc5cb --- /dev/null +++ b/src/loggingplus/__init__.py @@ -0,0 +1,3 @@ +"""LoggingPlus - Personal logging utils library.""" + +__version__ = "0.1.0" diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..36d423d --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1 @@ +"""Tests for LoggingPlus.""" diff --git a/tests/test_version.py b/tests/test_version.py new file mode 100644 index 0000000..59f5389 --- /dev/null +++ b/tests/test_version.py @@ -0,0 +1,8 @@ +"""Test version information.""" + +from loggingplus import __version__ + + +def test_version(): + """Test that version is defined.""" + assert __version__ == "0.1.0"