Commit 6905f409 authored by Xavier Thompson's avatar Xavier Thompson

[fix] Fix repeatability tests

parent 19fa1dbd
......@@ -194,6 +194,7 @@ versions:
... parts = foo
... find-links = %s
... allow-picked-versions = false
... newest = false
...
... [versions]
... eggs = 2.2
......@@ -269,6 +270,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:
......@@ -281,10 +284,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
......@@ -305,11 +312,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
......@@ -330,11 +339,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
......@@ -348,8 +359,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]
......@@ -374,7 +386,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]
......@@ -419,7 +432,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