hi, attached a patch for repoze.grok to always select the latest Grok
relase by default (can be overridden by specifying the grok version)

regards
michael

-- 
http://blog.d2m.at
http://planetzope.org

Index: setup.py
===================================================================
--- setup.py	(revision 1911)
+++ setup.py	(working copy)
@@ -12,9 +12,9 @@
 #
 ##############################################################################
 
-__version__ = '0.1.6'
+__version__ = '0.1.7'
 
-GROK_VERSION = '0.11' # track the underlying grok release for clarity.
+GROK_VERSION = '' # insert grok version to override the default current version
 
 from ez_setup import use_setuptools
 use_setuptools()
@@ -33,7 +33,8 @@
 # Convert Grok's "frozen set", which is in buildout.cfg format, into
 # a list of setuptools requirements.
 configs = os.path.join(here, 'configs')
-grok_kgs = 'grok-%s.cfg' % GROK_VERSION
+GROK_CURRENT = urlopen('http://grok.zope.org/releaseinfo/current').read()
+grok_kgs = 'grok-%s.cfg' % GROK_VERSION and GROK_VERSION or GROK_CURRENT
 grok_kgs_here = os.path.join(configs, grok_kgs)
 
 if not os.path.exists(grok_kgs_here):
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to