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 5d24835..4316425 100644 --- a/Formula/structkit.rb +++ b/Formula/structkit.rb @@ -3,10 +3,11 @@ 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" + url "https://files.pythonhosted.org/packages/96/1f/68245bee0ae39a27053b3044cfd7083c6867b3fc71bb62213b9b680ba35b/structkit-3.3.0.tar.gz" + sha256 "4b7272f036f3fa6835cb0d5fa6a0df43084a8c07d591f25de99397b0c7603cd2" license "Apache-2.0" + 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 diff --git a/README.md b/README.md index 6904ec7..8899ae4 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 ="