Almonds Stable Core — initial implementation#10
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the complete Almonds Stable Core: all snippet commands, stash management, remote stash support, configuration system, packaging, CI/CD, tests, and documentation.
Closes #1, Closes #2, Closes #3, Closes #4, Closes #5, Closes #6, Closes #7, Closes #8
Changes
snack list [category],snack search,snack unpack [--flat] [--force],snack pack [--force]with overwrite prompts and clear error messagessnack stash create,snack stash list,snack stash move; named stashes written to~/.snackstashrcin INI format; legacystash=<path>format still readsnack stash add-remote owner/repo [--subdir] [--force]; downloads GitHub tarball via stdliburllib/tarfile, copies.pyfiles preserving directory structureSnackConfigclass with priority order:SNACK_STASHenv var → active named stash → error; every misconfiguration produces an actionable messagesnack --versionreads from package metadata;pyproject.tomlis the single source of truthpyproject.tomlwith correct entry point (snack = "snacks.main:app"), installs cleanly viapipxandpipci.ymlrunspyteston push/PR tomainacross Python 3.10, 3.11, 3.12publish.ymltriggers onv*tags: test → build → publish to PyPI (OIDC trusted publishing) → create GitHub Release with artifactstest_commands.pyandtest_stash_commands.py; config path monkeypatched,add-remoteuses mocked tarball, no real network calls or writes to~Test plan
pytest tests/ -v) — 33 passedNotes for reviewer
add-remoteuses only stdlib — no new runtime dependencies beyond Typer. The config file format changed from the original sectionlessstash=<path>to INI-style[stash.<name>]sections, but the old format is still read transparently so existing installs won't break.PyPI publish requires a one-time trusted publisher setup on pypi.org before the first tag push (repo Settings → Environments →
pypi).