diff --git a/Formula/cowponder.rb b/Formula/cowponder.rb index 1468b3f..7e1162f 100644 --- a/Formula/cowponder.rb +++ b/Formula/cowponder.rb @@ -4,11 +4,10 @@ class Cowponder < Formula desc "Simple terminal command to display random philosophical thoughts from a cow" homepage "https://github.com/maxcai314/homebrew-cowponder" url "https://max.xz.ax/cowponder/cowponder-homebrew-v0.0.4.tar.gz" - sha256 "f9ba2818473e0b74d311a809a1c884ecedfeddfe3b62bf7dc898539a3d4e4ab5" depends_on "cowsay" - depends_on "python@3" + depends_on "python@3.x" # requests resource resource "requests" do @@ -18,8 +17,8 @@ class Cowponder < Formula def install virtualenv_install_with_resources - bin.install "ponder" - bin.install "cowponder" + bin.install "ponder.py" => ponder + bin.install "cowponder" => cowponder etc.install "cowthoughts.txt" end diff --git a/resources/contents/cowponder b/resources/contents/cowponder.py similarity index 99% rename from resources/contents/cowponder rename to resources/contents/cowponder.py index 0844848..fdd2a10 100755 --- a/resources/contents/cowponder +++ b/resources/contents/cowponder.py @@ -1,9 +1,10 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import argparse import subprocess from random import SystemRandom from os import path, popen + cowthoughts_path = path.join(popen("brew --prefix").read().strip(), "etc", "cowthoughts.txt") random = SystemRandom() # more random diff --git a/resources/contents/ponder b/resources/contents/ponder.py similarity index 98% rename from resources/contents/ponder rename to resources/contents/ponder.py index 3c98114..f2e0392 100755 --- a/resources/contents/ponder +++ b/resources/contents/ponder.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import argparse import requests @@ -6,6 +6,7 @@ import os from random import SystemRandom from os import path, popen + cowthoughts_path = path.join(popen("brew --prefix").read().strip(), "etc", "cowthoughts.txt") random = SystemRandom() # more random