Commit b3d43103 authored by Gary Poster's avatar Gary Poster

normalize text indentation, favoring not indenting expository text. fix a few...

normalize text indentation, favoring not indenting expository text.  fix a few typos and spacing problems.
parent 99597d06
...@@ -260,18 +260,18 @@ def make_dist_that_requires(dest, name, requires=[], version=1, egg=''): ...@@ -260,18 +260,18 @@ def make_dist_that_requires(dest, name, requires=[], version=1, egg=''):
def show_who_requires_when_there_is_a_conflict(): def show_who_requires_when_there_is_a_conflict():
""" """
It's a pain when we require eggs that have requirements that are It's a pain when we require eggs that have requirements that are
incompatible. We want the error we get to tell us what is missing. incompatible. We want the error we get to tell us what is missing.
Let's make a few develop distros, some of which have incompatible Let's make a few develop distros, some of which have incompatible
requirements. requirements.
>>> make_dist_that_requires(sample_buildout, 'sampley', >>> make_dist_that_requires(sample_buildout, 'sampley',
... ['demoneeded ==1.0']) ... ['demoneeded ==1.0'])
>>> make_dist_that_requires(sample_buildout, 'samplez', >>> make_dist_that_requires(sample_buildout, 'samplez',
... ['demoneeded ==1.1']) ... ['demoneeded ==1.1'])
Now, let's create a buildout that requires y and z: Now, let's create a buildout that requires y and z:
>>> write('buildout.cfg', >>> write('buildout.cfg',
... ''' ... '''
...@@ -298,8 +298,8 @@ def show_who_requires_when_there_is_a_conflict(): ...@@ -298,8 +298,8 @@ def show_who_requires_when_there_is_a_conflict():
We already have: demoneeded 1.1 We already have: demoneeded 1.1
but sampley 1 requires 'demoneeded==1.0'. but sampley 1 requires 'demoneeded==1.0'.
Here, we see that sampley required an older version of demoneeded. Here, we see that sampley required an older version of demoneeded. What
What if we hadn't required sampley ourselves: if we hadn't required sampley ourselves:
>>> make_dist_that_requires(sample_buildout, 'samplea', ['sampleb']) >>> make_dist_that_requires(sample_buildout, 'samplea', ['sampleb'])
>>> make_dist_that_requires(sample_buildout, 'sampleb', >>> make_dist_that_requires(sample_buildout, 'sampleb',
...@@ -317,7 +317,7 @@ def show_who_requires_when_there_is_a_conflict(): ...@@ -317,7 +317,7 @@ def show_who_requires_when_there_is_a_conflict():
... samplez ... samplez
... ''' % globals()) ... ''' % globals())
If we use the verbose switch, we can see where requirements are comning from: If we use the verbose switch, we can see where requirements are coming from:
>>> print system(buildout+' -v'), # doctest: +ELLIPSIS >>> print system(buildout+' -v'), # doctest: +ELLIPSIS
Installing 'zc.buildout', 'setuptools'. Installing 'zc.buildout', 'setuptools'.
...@@ -351,10 +351,9 @@ If we use the verbose switch, we can see where requirements are comning from: ...@@ -351,10 +351,9 @@ If we use the verbose switch, we can see where requirements are comning from:
def show_who_requires_missing_distributions(): def show_who_requires_missing_distributions():
""" """
When working with a lot of eggs, which require eggs recursively, When working with a lot of eggs, which require eggs recursively, it can
it can be hard to tell why we're requireing things we can't find. be hard to tell why we're requiring things we can't find. Fortunately,
Fortunately, buildout will tell us who's asking for something that buildout will tell us who's asking for something that we can't find.
we can't find.
>>> make_dist_that_requires(sample_buildout, 'sampley', ['demoneeded']) >>> make_dist_that_requires(sample_buildout, 'sampley', ['demoneeded'])
>>> make_dist_that_requires(sample_buildout, 'samplea', ['sampleb']) >>> make_dist_that_requires(sample_buildout, 'samplea', ['sampleb'])
...@@ -387,8 +386,8 @@ def show_who_requires_missing_distributions(): ...@@ -387,8 +386,8 @@ def show_who_requires_missing_distributions():
def test_comparing_saved_options_with_funny_characters(): def test_comparing_saved_options_with_funny_characters():
""" """
If an option has newlines, extra/odd spaces or a %, we need to make If an option has newlines, extra/odd spaces or a %, we need to make sure
sure the comparison with the saved value works correctly. the comparison with the saved value works correctly.
>>> mkdir(sample_buildout, 'recipes') >>> mkdir(sample_buildout, 'recipes')
>>> write(sample_buildout, 'recipes', 'debug.py', >>> write(sample_buildout, 'recipes', 'debug.py',
...@@ -2158,7 +2157,7 @@ def prefer_final(): ...@@ -2158,7 +2157,7 @@ def prefer_final():
""" """
This test tests several permutations: This test tests several permutations:
Using different version numbers to work around zip impporter cache problems. :( Using different version numbers to work around zip importer cache problems. :(
- With prefer final: - With prefer final:
...@@ -2980,7 +2979,7 @@ def test_suite(): ...@@ -2980,7 +2979,7 @@ def test_suite():
'-q develop -mxN -d "/sample-buildout/develop-eggs'), '-q develop -mxN -d "/sample-buildout/develop-eggs'),
'-q develop -mxN -d /sample-buildout/develop-eggs' '-q develop -mxN -d /sample-buildout/develop-eggs'
), ),
(re.compile(r'^[*]...'), '...'), (re.compile(r'^[*]...'), '...'),
]), ]),
), ),
zc.buildout.testselectingpython.test_suite(), zc.buildout.testselectingpython.test_suite(),
......
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