diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-09 16:21:55 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-09 16:21:55 -0500 |
| commit | 4dc9d7d5a53b4c9b8d49233cf2c384dda35c5313 (patch) | |
| tree | 0ce5de090a133794aaa79547b76e55afa07bdba6 /AGENTS.md | |
| parent | baf1ea549ad0218efcfaf489f9fb2ed7b67bf652 (diff) | |
feat: Add stripe to Python deps and document dependency process
- Add stripe to Omni/Bild/Deps/Python.nix (alphabetically sorted) -
Fix all type annotations in Billing.py for mypy - Document how to add
Python packages in AGENTS.md - Add billing routes to Web.py (checkout,
portal, webhook)
This enables Stripe integration in PodcastItLater.
Related to task t-144e7lF
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -386,6 +386,27 @@ Run: `task init` - Verify dependency IDs exist: `task list` - Check dependency tree: `task deps <id>` +## Adding New Dependencies + +### Python Packages + +To add a new Python package as a dependency: + +1. Add the package name to `Omni/Bild/Deps/Python.nix` (alphabetically sorted) +2. Use it in your Python file with `# : dep <package-name>` comment at the top +3. Run `bild <yourfile.py>` to build with the new dependency + +Example: +```python +# : out myapp +# : dep stripe +# : dep pytest +import stripe +``` + +The package name must match the nixpkgs python package name (usually the PyPI name). +Check available packages: `nix-env -qaP -A nixpkgs.python3Packages | grep <name>` + ## Development Tools ### bild |
