From 4c8f9e377c6103ed1e8373de62f47bdb7637edb7 Mon Sep 17 00:00:00 2001 From: Mikkel Garcia Date: Fri, 23 Oct 2026 01:15:26 -0600 Subject: [PATCH] fix: require patched wheel in ink build isolation --- .github/workflows/ink.yml | 25 +++++++++++++++++++++++++ relevance/projects/ink/README.md | 4 +++- relevance/projects/ink/pyproject.toml | 4 ++-- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ink.yml diff --git a/.github/workflows/ink.yml b/.github/workflows/ink.yml new file mode 100644 index 0000000..44695ff --- /dev/null +++ b/.github/workflows/ink.yml @@ -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 diff --git a/relevance/projects/ink/README.md b/relevance/projects/ink/README.md index 599b05a..8739261 100644 --- a/relevance/projects/ink/README.md +++ b/relevance/projects/ink/README.md @@ -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" diff --git a/relevance/projects/ink/pyproject.toml b/relevance/projects/ink/pyproject.toml index fedbf6b..b4e7085 100644 --- a/relevance/projects/ink/pyproject.toml +++ b/relevance/projects/ink/pyproject.toml @@ -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]