Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Hard code the version source URL
Browse files Browse the repository at this point in the history
  • Loading branch information
prsephton committed Sep 6, 2017
1 parent eca0fd7 commit 886f389
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests.txt
Expand Up @@ -11,9 +11,17 @@ Eggs are placed in our freshly created eggs directory:
>>> # Use a specific grok version, because 'current' will change at some
>>> # point in the future.
>>> executable = [os.path.join(current_dir, 'bin', 'grokproject')]

When we have merged the PR, this will need to change

>>> base = open(os.path.join(current_dir, '.git', 'config')).read()
>>> base = base[base.find('url = ')+6:base.find('.git')]
>>> base = base.replace('github.com', 'raw.githubusercontent.com')

We temporarily hard code 'prsephton/grokproject' since the version info does not
yet exist in 'zopefoundation/grokproject' until after the PR merge

>>> base = 'https://raw.githubusercontent.com/prsephton/grokproject'
>>> cver = open(os.path.join(current_dir,'versions','current')).read().strip()
>>> opts = ['--user=a', '--passwd=a', '--eggs-dir=' + eggsdir]
>>> opts += ['--version-url='+base+'/master/versions/'+cver+'/versions.cfg']
Expand Down

0 comments on commit 886f389

Please sign in to comment.