Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
6905f409
Commit
6905f409
authored
May 17, 2024
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] Fix repeatability tests
parent
19fa1dbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
src/zc/buildout/tests/repeatable.txt
src/zc/buildout/tests/repeatable.txt
+20
-6
No files found.
src/zc/buildout/tests/repeatable.txt
View file @
6905f409
...
...
@@ -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]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment