From ecc49d8ee1078ffadfd7cd3a9d7b3ead38957976 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 8 Oct 2026 09:26:22 +0000 Subject: [PATCH 1/3] Bump structkit to 3.3.0 and set license to MIT Update the formula URL and sha256 from PyPI, switch the declared license to MIT to match package metadata, and refresh README version and license mentions. Python dependencies are unchanged. Co-authored-by: Kenneth Belitzky --- Formula/structkit.rb | 6 +++--- README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Formula/structkit.rb b/Formula/structkit.rb index 5d24835..06b2f30 100644 --- a/Formula/structkit.rb +++ b/Formula/structkit.rb @@ -3,9 +3,9 @@ class Structkit < Formula desc "YAML-first project scaffolding tool with AI/MCP integration" homepage "https://structkit.app" - url "https://files.pythonhosted.org/packages/b5/4f/257ae3ff6e92d68e926eb56589de260b856c51e58f991dd28d6d4f5a39cb/structkit-3.2.1.tar.gz" - sha256 "7dcdce6debf3522dff61814a6cc80e60450a9b33c1a24f7bfb88b7ce663cf22c" - license "Apache-2.0" + url "https://files.pythonhosted.org/packages/96/1f/68245bee0ae39a27053b3044cfd7083c6867b3fc71bb62213b9b680ba35b/structkit-3.3.0.tar.gz" + sha256 "4b7272f036f3fa6835cb0d5fa6a0df43084a8c07d591f25de99397b0c7603cd2" + license "MIT" depends_on "libsodium" depends_on "python@3.12" diff --git a/README.md b/README.md index 6904ec7..78a01c4 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ When a new version of StructKit is released on PyPI, update the formula: 1. **Download and calculate the SHA256 hash for the new version:** ```bash - VERSION=3.2.2 # Replace with the new version + VERSION=3.3.0 # Replace with the new version curl -sL "https://files.pythonhosted.org/packages/source/s/structkit/structkit-${VERSION}.tar.gz" \ --output "/tmp/structkit-${VERSION}.tar.gz" sha256sum "/tmp/structkit-${VERSION}.tar.gz" @@ -66,7 +66,7 @@ When a new version of StructKit is released on PyPI, update the formula: ### Checking for new dependencies: ```bash -VERSION=3.2.2 # Replace with the new version +VERSION=3.3.0 # Replace with the new version cd /tmp tar -xzf "structkit-${VERSION}.tar.gz" cat "structkit-${VERSION}/pyproject.toml" | grep -A 20 "dependencies =" @@ -89,4 +89,4 @@ end ## License -This tap is maintained following Homebrew conventions. StructKit itself is licensed under Apache-2.0. +This tap is maintained following Homebrew conventions. StructKit itself is licensed under MIT. From 64e56b3682dbca22a65311847e4b359a170bea23 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 8 Oct 2026 10:01:08 +0000 Subject: [PATCH 2/3] Fix structkit formula test and run install in CI structkit has no --version flag; assert --help usage instead so brew test works offline. Build the formula from source in formula-check and run brew test. Add rust as a build dependency so pydantic-core can compile from its sdist. Co-authored-by: Kenneth Belitzky --- .github/workflows/formula-check.yml | 10 ++++++++++ Formula/structkit.rb | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/formula-check.yml b/.github/workflows/formula-check.yml index 457b56c..d5d74f0 100644 --- a/.github/workflows/formula-check.yml +++ b/.github/workflows/formula-check.yml @@ -5,10 +5,12 @@ on: branches: [main] paths: - 'Formula/**' + - '.github/workflows/formula-check.yml' pull_request: branches: [main] paths: - 'Formula/**' + - '.github/workflows/formula-check.yml' jobs: check: @@ -35,3 +37,11 @@ jobs: echo "Error: Trailing whitespace found" exit 1 fi + + - name: Install formula + run: | + brew install --build-from-source structkit + + - name: Test formula + run: | + brew test structkit diff --git a/Formula/structkit.rb b/Formula/structkit.rb index 06b2f30..1fb9898 100644 --- a/Formula/structkit.rb +++ b/Formula/structkit.rb @@ -7,6 +7,7 @@ class Structkit < Formula sha256 "4b7272f036f3fa6835cb0d5fa6a0df43084a8c07d591f25de99397b0c7603cd2" license "MIT" + depends_on "rust" => :build depends_on "libsodium" depends_on "python@3.12" @@ -170,6 +171,6 @@ def install end test do - assert_match "structkit", shell_output("#{bin}/structkit --version") + assert_match "usage", shell_output("#{bin}/structkit --help") end end From 54f9d04a39f9ea9e2d89a80c9319286cabad42bc Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 8 Oct 2026 10:01:56 +0000 Subject: [PATCH 3/3] Declare structkit license as Apache-2.0 Match the upstream LICENSE file. PyPI still labels the package MIT, but Apache-2.0 is the correct license. Co-authored-by: Kenneth Belitzky --- Formula/structkit.rb | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/structkit.rb b/Formula/structkit.rb index 1fb9898..4316425 100644 --- a/Formula/structkit.rb +++ b/Formula/structkit.rb @@ -5,7 +5,7 @@ class Structkit < Formula homepage "https://structkit.app" url "https://files.pythonhosted.org/packages/96/1f/68245bee0ae39a27053b3044cfd7083c6867b3fc71bb62213b9b680ba35b/structkit-3.3.0.tar.gz" sha256 "4b7272f036f3fa6835cb0d5fa6a0df43084a8c07d591f25de99397b0c7603cd2" - license "MIT" + license "Apache-2.0" depends_on "rust" => :build depends_on "libsodium" diff --git a/README.md b/README.md index 78a01c4..8899ae4 100644 --- a/README.md +++ b/README.md @@ -89,4 +89,4 @@ end ## License -This tap is maintained following Homebrew conventions. StructKit itself is licensed under MIT. +This tap is maintained following Homebrew conventions. StructKit itself is licensed under Apache-2.0.