Skip to content

Commit

Permalink
main: drop pypi-related code
Browse files Browse the repository at this point in the history
it should be done by brew already
  • Loading branch information
dawidd6 authored Feb 22, 2023
1 parent ed75357 commit eb9a6ac
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions main.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require 'formula'
require 'utils/pypi'

class Object
def false?
Expand Down Expand Up @@ -103,15 +102,6 @@ def read_brew(*args)
version = Version.parse tag
url = stable.url.gsub stable.version, version

# Check if formula is originating from PyPi
pypi_url = PyPI.update_pypi_url(stable.url, version)
if pypi_url
# Substitute url
url = pypi_url
# Install pipgrip utility so resources from PyPi get updated too
brew 'install', 'pipgrip'
end

# Finally bump the formula
brew 'bump-formula-pr',
'--no-audit',
Expand Down Expand Up @@ -154,15 +144,6 @@ def read_brew(*args)
formula = info['formula']
version = info['version']['latest']

# Get stable software spec of the formula
stable = Formula[formula].stable

# Check if formula is originating from PyPi
if !Formula["pipgrip"].any_version_installed? && PyPI.update_pypi_url(stable.url, version)
# Install pipgrip utility so resources from PyPi get updated too
brew 'install', 'pipgrip'
end

begin
# Finally bump the formula
brew 'bump-formula-pr',
Expand Down

0 comments on commit eb9a6ac

Please sign in to comment.