[Checkins]
SVN: zc.buildout/branches/faassen-develop/src/zc/buildout/repeatable.txt
Try to test the versions/develop interaction. Unfortunately for some
Martijn Faassen
faassen at infrae.com
Mon Feb 25 18:05:12 EST 2008
Log message for revision 84247:
Try to test the versions/develop interaction. Unfortunately for some
reason this test fails.
Changed:
U zc.buildout/branches/faassen-develop/src/zc/buildout/repeatable.txt
-=-
Modified: zc.buildout/branches/faassen-develop/src/zc/buildout/repeatable.txt
===================================================================
--- zc.buildout/branches/faassen-develop/src/zc/buildout/repeatable.txt 2008-02-25 23:03:51 UTC (rev 84246)
+++ zc.buildout/branches/faassen-develop/src/zc/buildout/repeatable.txt 2008-02-25 23:05:11 UTC (rev 84247)
@@ -178,3 +178,60 @@
... [foo]
... recipe = spam
... ''' % join('recipe', 'dist'))
+
+When you have a develop section and a versions section in the same
+buildout, the versions listed in the versions are still picked and the
+develop egg is not picked up. Let's create an egg for ``spam`` in
+develop mode::
+
+ >>> mkdir('devrecipe')
+ >>> write('devrecipe', 'recipe.py',
+ ... '''
+ ... class Recipe:
+ ... def __init__(*a): pass
+ ... def install(self):
+ ... print 'recipe v3'
+ ... return ()
+ ... update = install
+ ... ''')
+
+ >>> write('devrecipe', 'setup.py',
+ ... '''
+ ... from setuptools import setup
+ ... setup(name='spam', version='3dev', py_modules=['recipe'],
+ ... entry_points={'zc.buildout': ['default = recipe:Recipe']},
+ ... )
+ ... ''')
+ >>> write('devrecipe', 'README', '')
+
+We'll set up this recipe in development mode::
+
+ >>> print system(buildout+' setup devrecipe develop') # doctest: +ELLIPSIS
+ Running setup script 'devrecipe/setup.py'.
+ ...
+
+ >>> write('buildout.cfg',
+ ... '''
+ ... [buildout]
+ ... parts = foo
+ ... develop = devrecipe
+ ... find-links = %s
+ ... versions = versions
+ ...
+ ... [versions]
+ ... spam = 1.5
+ ...
+ ... [foo]
+ ... recipe = spam
+ ... ''' % join('recipe', 'dist'))
+
+Now we'll run buildout. We expect version 1 of spam to be picked, not
+3dev, which is listed under develop::
+
+ >>> print system(buildout)
+ Getting distribution for 'spam==1'.
+ Got spam 1.
+ Uninstalling foo.
+ Installing foo.
+ recipe v1
+
More information about the Checkins
mailing list