Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ink.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Ink packaging
on:
pull_request:
paths: [relevance/projects/ink/**, .github/workflows/ink.yml]
push:
branches: [master]
paths: [relevance/projects/ink/**, .github/workflows/ink.yml]
permissions:
contents: read
jobs:
package:
runs-on: ubuntu-latest
defaults:
run:
working-directory: relevance/projects/ink
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11.17'
- run: python -m unittest discover -s tests -v
- run: python -m pip install build
- run: python -m build
- run: python -m pip install dist/*.whl
- run: ink --help
4 changes: 3 additions & 1 deletion relevance/projects/ink/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# ink

A small command-line notebook. Notes are stored in one JSON file you pass
with `--notebook`. The standard library is enough; nothing to install.
with `--notebook`. Python 3.11 or newer is required. Running the module uses only the standard
library; packaging uses setuptools>=84.2.1 (including its patched vendored
wheel) and wheel>=0.46.2.

```bash
python -m ink --notebook notes.json add --title "Market" --body "lemons"
Expand Down
4 changes: 2 additions & 2 deletions relevance/projects/ink/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name = "ink"
version = "0.1.0"
description = "A small notebook CLI: add, list, search, and export notes."
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.11"

[project.scripts]
ink = "ink.cli:main"

[build-system]
requires = ["setuptools"]
requires = ["setuptools>=84.2.1", "wheel>=0.46.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
Expand Down
Loading