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
10 changes: 10 additions & 0 deletions .github/workflows/formula-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
7 changes: 4 additions & 3 deletions Formula/structkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 ="
Expand Down
Loading