Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

homebrew-structkit

Homebrew tap for StructKit. This is not the product.

Installation

brew tap httpdss/structkit
brew install structkit

Usage

Once installed, you can use the structkit command:

# Check version
structkit --version

# List available structures
structkit list

# Generate a project structure
structkit generate --vars module_name=my-module terraform/modules/generic ./my-module

For full documentation, visit structkit.app/docs.

Updating the Formula

When a new version of StructKit is released on PyPI, update the formula:

Steps to bump the version:

  1. Download and calculate the SHA256 hash for the new version:

    VERSION=3.2.2  # 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"
  2. Update Formula/structkit.rb:

    • Update the url line with the new version number
    • Update the sha256 value with the hash from step 1
    • Check if any new dependencies were added by extracting the tarball and reviewing pyproject.toml
  3. Test the formula locally:

    brew uninstall structkit  # If previously installed
    brew install --build-from-source Formula/structkit.rb
    structkit --version
  4. Commit and push the changes:

    git add Formula/structkit.rb
    git commit -m "Bump structkit to version ${VERSION}"
    git push origin main

Checking for new dependencies:

VERSION=3.2.2  # Replace with the new version
cd /tmp
tar -xzf "structkit-${VERSION}.tar.gz"
cat "structkit-${VERSION}/pyproject.toml" | grep -A 20 "dependencies ="

If new dependencies are added, you'll need to:

  1. Download each dependency from PyPI
  2. Calculate its SHA256 hash
  3. Add a new resource block in Formula/structkit.rb

Example resource block:

resource "package-name" do
  url "https://files.pythonhosted.org/packages/.../package-name-X.Y.Z.tar.gz"
  sha256 "abcdef123456..."
end

License

This tap is maintained following Homebrew conventions. StructKit itself is licensed under Apache-2.0.

About

Homebrew tap for StructKit (brew tap httpdss/structkit && brew install structkit)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages