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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
isaak yansane-sisk
slapos.buildout
Commits
d1444978
Commit
d1444978
authored
Feb 16, 2013
by
Jim Fulton
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #78 from reinout/reinout-distribute-version-test-fix
Made tests independent of distribute version number
parents
b6bfb4ff
8a4ed024
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
src/zc/buildout/repeatable.txt
src/zc/buildout/repeatable.txt
+17
-10
No files found.
src/zc/buildout/repeatable.txt
View file @
d1444978
...
...
@@ -236,6 +236,13 @@ Since buildout 2.0, the functionality of the `buildout-versions
<http://packages.python.org/buildout-versions/>`_ extension is part of
buildout itself. This makes reporting and managing versions easier.
Buildout picks a version for distribute and for the tests, we need to grab the
version number:
>>> import pkg_resources
>>> req = pkg_resources.Requirement.parse('distribute')
>>> distribute_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:
...
...
@@ -270,12 +277,12 @@ When everything is pinned, no output is generated:
... show-picked-versions = true
...
... [versions]
... distribute =
0.6.35
... distribute =
%s
... spam = 2
...
... [foo]
... recipe = spam
... ''' %
join('recipe', 'dist'
))
... ''' %
(join('recipe', 'dist'), distribute_version
))
>>> print_(system(buildout), end='') # doctest: +ELLIPSIS
Updating foo.
recipe v2
...
...
@@ -294,12 +301,12 @@ and case differences won't impact the pinning:
... show-picked-versions = true
...
... [versions]
... distriBUTE =
0.6.35
... distriBUTE =
%s
... Spam = 2
...
... [foo]
... recipe = spam
... ''' %
join('recipe', 'dist'
))
... ''' %
(join('recipe', 'dist'), distribute_version
))
>>> print_(system(buildout), end='') # doctest: +ELLIPSIS
Updating foo.
recipe v2
...
...
@@ -311,9 +318,9 @@ extending from that versions file:
>>> write('my_versions.cfg',
... '''
... [versions]
... distribute =
0.6.35
... distribute =
%s
... spam = 2
... ''')
... '''
% distribute_version
)
>>> write('buildout.cfg',
... '''
... [buildout]
...
...
@@ -336,8 +343,8 @@ at the end.
>>> write('my_versions.cfg',
... '''
... [versions]
... distribute =
0.6.35
... ''')
... distribute =
%s
... '''
% distribute_version
)
>>> write('buildout.cfg',
... '''
... [buildout]
...
...
@@ -377,8 +384,8 @@ printing them to the console):
>>> write('my_versions.cfg',
... '''
... [versions]
... distribute =
0.6.35
... ''')
... distribute =
%s
... '''
% distribute_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