Skip to content

Commit 0ed03ef

Browse files
committed
ci: brew only fix
1 parent b30ec47 commit 0ed03ef

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,11 @@ jobs:
8888
sudo: true
8989
os: osx
9090
osx_image: xcode10.1
91+
before_install: brew install jq
9192
install: python -m pip install requests
92-
script: make brew-commit-formula brew-build-bottle brew-commit-bottle
93+
script:
94+
- echo PY_BREW_VERSION=$(python setup.py --version)
95+
- make -e PY_BREW_VERSION=$(python setup.py --version) brew-commit-formula brew-build-bottle brew-commit-bottle
9396
deploy:
9497
- provider: releases
9598
api_key:
@@ -103,6 +106,7 @@ jobs:
103106
skip-cleanup: true
104107
# Set in the settings page of your repository, as a secure variable
105108
github-token: $GITHUB_TOKEN
109+
repo: swissdatasciencecenter/homebrew-renku
106110
target-branch: master
107111
keep-history: true
108112
local-dir: /usr/local/Homebrew/Library/Taps/swissdatasciencecenter/homebrew-renku/

brew.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def find_release(package, releases, dependencies=None):
107107
sys.exit(1)
108108

109109
description = response.json()
110-
version = os.environ.get('PY_BREW_VERSION', get_distribution(NAME).version)
110+
version = os.environ.get('PY_BREW_VERSION')
111+
if version is None:
112+
version = get_distribution(NAME).version
113+
111114
release = find_release(NAME, description['releases'][version])
112115

113116
with open('Pipfile.lock') as f:

0 commit comments

Comments
 (0)