Commit 9bedbc96 authored by Xavier Thompson's avatar Xavier Thompson

[fix] Fix repeatability tests

parent 5d3e1a57
......@@ -194,6 +194,7 @@ versions:
... parts = foo
... find-links = %s
... allow-picked-versions = false
... newest = false
...
... [versions]
... eggs = 2.2
......@@ -270,6 +271,8 @@ version number:
>>> setuptools_version = pkg_resources.working_set.find(req).version
>>> req = pkg_resources.Requirement.parse('pip')
>>> pip_version = pkg_resources.working_set.find(req).version
>>> req = pkg_resources.Requirement.parse('wheel')
>>> wheel_version = pkg_resources.working_set.find(req).version
If you set the ``show-picked-versions`` option, buildout will print
versions it picked at the end of its run:
......@@ -282,10 +285,14 @@ versions it picked at the end of its run:
... show-picked-versions = true
...
... [versions]
... pip = %s
... setuptools = %s
... wheel = %s
...
... [foo]
... recipe = spam
... ''' % join('recipe', 'dist'))
... ''' % (join('recipe', 'dist'),
... pip_version, setuptools_version, wheel_version))
>>> print_(system(buildout), end='') # doctest: +ELLIPSIS
Updating foo.
recipe v2
......@@ -306,11 +313,13 @@ When everything is pinned, no output is generated:
... [versions]
... pip = %s
... setuptools = %s
... wheel = %s
... spam = 2
...
... [foo]
... recipe = spam
... ''' % (join('recipe', 'dist'), pip_version, setuptools_version))
... ''' % (join('recipe', 'dist'),
... pip_version, setuptools_version, wheel_version))
>>> print_(system(buildout), end='') # doctest: +ELLIPSIS
Updating foo.
recipe v2
......@@ -331,11 +340,13 @@ and case differences won't impact the pinning:
... [versions]
... pip = %s
... setuptools = %s
... wheel = %s
... Spam = 2
...
... [foo]
... recipe = spam
... ''' % (join('recipe', 'dist'), pip_version, setuptools_version))
... ''' % (join('recipe', 'dist'),
... pip_version, setuptools_version, wheel_version))
>>> print_(system(buildout), end='') # doctest: +ELLIPSIS
Updating foo.
recipe v2
......@@ -349,8 +360,9 @@ extending from that versions file:
... [versions]
... pip = %s
... setuptools = %s
... wheel = %s
... spam = 2
... ''' % (pip_version, setuptools_version))
... ''' % (pip_version, setuptools_version, wheel_version))
>>> write('buildout.cfg',
... '''
... [buildout]
......@@ -375,7 +387,8 @@ at the end.
... [versions]
... pip = %s
... setuptools = %s
... ''' % (pip_version, setuptools_version))
... wheel = %s
... ''' % (pip_version, setuptools_version, wheel_version))
>>> write('buildout.cfg',
... '''
... [buildout]
......@@ -420,7 +433,8 @@ printing them to the console):
... [versions]
... pip = %s
... setuptools = %s
... ''' % (pip_version, setuptools_version))
... wheel = %s
... ''' % (pip_version, setuptools_version, wheel_version))
>>> write('buildout.cfg',
... '''
... [buildout]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment