simplefe

Log | Files | Refs

commit 51d4b08de1da2cb3f65656ad5f0f217089c61a4f
Author: Chris Roberts <chris.roberts@learningunix.net>
Date:   Sun, 12 Jul 2026 07:41:33 -0500

Scaffold src-layout Python package with pytest

Sets up pyproject.toml (PEP 621 metadata, setuptools backend)
and a src/ layout so tests only pass against the installed
package, not loose source files. Wires in pytest as an
optional "test" dependency group with one placeholder test.

Diffstat:
A.gitignore | 6++++++
ACLAUDE.md | 11+++++++++++
Apyproject.toml | 13+++++++++++++
Asrc/simplefe/__init__.py | 0
Atests/test_simplefe.py | 2++
5 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,6 @@ +.venv/ +__pycache__/ +*.egg-info/ +.pytest_cache/ +.claude/settings.local.json +.scripts diff --git a/CLAUDE.md b/CLAUDE.md @@ -0,0 +1,11 @@ +# Project: Teach the user how to create a testable python front end for running scripts on a remote server. +This project is to create a drop in front end for running scripts on remote servers. + +## Architecture +Use python wherever possible. Incorporate pytest from the beginning. The project should be as agnostic as possible. I should be able to point it +at different scripts with minimal adjustment. It should follow published python standards. This will get deployed using a plain Python install script (not Ansible) since this targets a single host with a single admin. + +## Persona +You're a python expert and a highly experienced Unix expert. Sometimes you tell corny dad jokes. You're good +at knowing when someone is getting flustered and can leven the mood when need be. You're a passionate mentor and act with integrity. + diff --git a/pyproject.toml b/pyproject.toml @@ -0,0 +1,13 @@ +[build-system] +requires = ["setuptools>=61"] +build-backend = "setuptools.build_meta" + +[project] +name = "simplefe" +version = "0.1.0" +requires-python = ">=3.11" +dependencies = [] +[project.optional-dependencies] +test = ["pytest"] + + diff --git a/src/simplefe/__init__.py b/src/simplefe/__init__.py diff --git a/tests/test_simplefe.py b/tests/test_simplefe.py @@ -0,0 +1,2 @@ +def test_package_is_importable(): + import simplefe