Skip to content

Commit

Permalink
Add new formula for auto-generating git commit messages
Browse files Browse the repository at this point in the history
- Added a new Homebrew formula for the gen-commit tool
- Includes dependencies on Python 3.11 and various Python packages
- Provides a test to verify the tool's version
  • Loading branch information
raghavpillai committed Jul 21, 2024
1 parent 2f476d8 commit 4cb606b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions gen-commit.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
class GenCommit < Formula
include Language::Python::Virtualenv

desc "Auto-generate git commit messages"
homepage "https://github.com/raghavpillai/gen-commit"
url "https://github.com/raghavpillai/gen-commit/archive/refs/tags/v0.5.0.tar.gz"
sha256 "REPLACE_WITH_ACTUAL_SHA256"
license "MIT"

depends_on "[email protected]"

resource "openai" do
url "https://files.pythonhosted.org/packages/20/49/df107c1171607610e8f02036971da528e004979dbd04875b2bed9144bc9a/openai-1.36.1.tar.gz"
sha256 "41be9e0302e95dba8a9374b885c5cb1cec2202816a70b98736fee25a2cadd1f2"
end

resource "anthropic" do
url "https://files.pythonhosted.org/packages/bb/e6/8b2e3a56571f9fd7bbf763dfb77f9f67b77f2e942e46a058c2821592f8bb/anthropic-0.2.8.tar.gz"
sha256 "d2629d7e26415bcce2ed0fdff0096a3fdd861099a73a1351ee705511d1c2ea6e"
end

resource "tiktoken" do
url "https://files.pythonhosted.org/packages/c4/4a/abaec53e93e3ef37224a4dd9e2fc6bb871e7a538c2b6b9d2a6397271daf4/tiktoken-0.7.0.tar.gz"
sha256 "1077266e949c24e0291f6c350433c6f0971365ece2b173a23bc3b9f9defef6b6"
end

resource "tomli" do
url "https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz"
sha256 "de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"
end

def install
virtualenv_install_with_resources
end

test do
system "#{bin}/gencommit", "--version"
end
end

0 comments on commit 4cb606b

Please sign in to comment.