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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.buildout
Commits
407036cd
Commit
407036cd
authored
Jun 16, 2012
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more tests passing w python 3.2
parent
70c9ae13
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
40 deletions
+50
-40
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+1
-1
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+8
-0
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+39
-37
zc.recipe.egg_/src/zc/recipe/egg/api.txt
zc.recipe.egg_/src/zc/recipe/egg/api.txt
+1
-1
zc.recipe.egg_/src/zc/recipe/egg/custom.txt
zc.recipe.egg_/src/zc/recipe/egg/custom.txt
+1
-1
No files found.
src/zc/buildout/buildout.py
View file @
407036cd
...
@@ -67,7 +67,7 @@ class MissingSection(zc.buildout.UserError, KeyError):
...
@@ -67,7 +67,7 @@ class MissingSection(zc.buildout.UserError, KeyError):
"""
"""
def
__str__
(
self
):
def
__str__
(
self
):
return
"The referenced section, %r, was not defined."
%
self
[
0
]
return
"The referenced section, %r, was not defined."
%
self
.
args
[
0
]
def
_annotate_section
(
section
,
note
):
def
_annotate_section
(
section
,
note
):
...
...
src/zc/buildout/testing.py
View file @
407036cd
...
@@ -461,6 +461,13 @@ normalize_script = (
...
@@ -461,6 +461,13 @@ normalize_script = (
re
.
compile
(
'(
\
n
?)- ([a-zA-Z_.-]+)-script.py
\
n
-
\
\
2.exe
\
n
'
),
re
.
compile
(
'(
\
n
?)- ([a-zA-Z_.-]+)-script.py
\
n
-
\
\
2.exe
\
n
'
),
'
\
\
1-
\
\
2
\
n
'
)
'
\
\
1-
\
\
2
\
n
'
)
if
sys
.
version_info
>
(
2
,
):
normalize___pycache__
=
(
re
.
compile
(
'(
\
n
?)d __pycache__
\
n
'
),
'
\
\
1'
)
else
:
normalize___pycache__
=
(
re
.
compile
(
'(
\
n
?)-
\
S+
\
.pyc
\
n
'
),
'
\
\
1'
)
normalize_egg_py
=
(
normalize_egg_py
=
(
re
.
compile
(
'-py
\
d[.]
\
d(-
\
S+)?.egg
'
),
re
.
compile
(
'-py
\
d[.]
\
d(-
\
S+)?.egg
'
),
'
-
pyN
.
N
.
egg
',
'
-
pyN
.
N
.
egg
',
...
@@ -469,3 +476,4 @@ normalize_egg_py = (
...
@@ -469,3 +476,4 @@ normalize_egg_py = (
normalize_exception_type_for_python_2_and_3 = (
normalize_exception_type_for_python_2_and_3 = (
re.compile(r'
^
(
\
w
+
\
.)
*
([
A
-
Z
][
A
-
Za
-
z0
-
9
]
+
Error
:
)
'),
re.compile(r'
^
(
\
w
+
\
.)
*
([
A
-
Z
][
A
-
Za
-
z0
-
9
]
+
Error
:
)
'),
'
\
2
')
'
\
2
')
src/zc/buildout/tests.py
View file @
407036cd
...
@@ -943,7 +943,10 @@ def extensions_installed_as_eggs_work_in_offline_mode():
...
@@ -943,7 +943,10 @@ def extensions_installed_as_eggs_work_in_offline_mode():
>>> mkdir('demo')
>>> mkdir('demo')
>>> write('demo', 'demo.py',
>>> write('demo', 'demo.py',
... """
... r"""
... import sys
... def print_(*args):
... sys.stdout.write(' '.join(map(str, args)) + '
\
\
n')
... def ext(buildout):
... def ext(buildout):
... print_('ext', list(buildout))
... print_('ext', list(buildout))
... """)
... """)
...
@@ -1070,7 +1073,6 @@ because of the missing target file.
...
@@ -1070,7 +1073,6 @@ because of the missing target file.
>>> ls('recipe')
>>> ls('recipe')
l another-file
l another-file
- foo.py
- foo.py
- foo.pyc
d recipe.egg-info
d recipe.egg-info
- setup.py
- setup.py
- some-file
- some-file
...
@@ -1815,7 +1817,7 @@ def bug_59270_recipes_always_start_in_buildout_dir():
...
@@ -1815,7 +1817,7 @@ def bug_59270_recipes_always_start_in_buildout_dir():
... r'''
... r'''
... import os, sys
... import os, sys
... def print_(*args):
... def print_(*args):
... sys.stdout.write(' '.join(map(str, args)))
... sys.stdout.write(' '.join(map(str, args))
+ '\n'
)
... class Bad:
... class Bad:
... def __init__(self, *_):
... def __init__(self, *_):
... print_(os.getcwd())
... print_(os.getcwd())
...
@@ -1856,7 +1858,6 @@ def bug_59270_recipes_always_start_in_buildout_dir():
...
@@ -1856,7 +1858,6 @@ def bug_59270_recipes_always_start_in_buildout_dir():
Installing b2.
Installing b2.
/sample-buildout
/sample-buildout
/sample-buildout/bad_start
/sample-buildout/bad_start
"""
"""
def
bug_61890_file_urls_dont_seem_to_work_in_find_dash_links
():
def
bug_61890_file_urls_dont_seem_to_work_in_find_dash_links
():
...
@@ -1929,15 +1930,14 @@ def dealing_with_extremely_insane_dependencies():
...
@@ -1929,15 +1930,14 @@ def dealing_with_extremely_insane_dependencies():
... eggs = pack0
... eggs = pack0
... ''')
... ''')
>>> print_(system(buildout), end='')
>>> print_(system(buildout), end='')
# doctest: +ELLIPSIS
Develop: '/sample-buildout/pack0'
Develop: '/sample-buildout/pack0'
Develop: '/sample-buildout/pack1'
Develop: '/sample-buildout/pack1'
Develop: '/sample-buildout/pack2'
Develop: '/sample-buildout/pack2'
Develop: '/sample-buildout/pack3'
Develop: '/sample-buildout/pack3'
Develop: '/sample-buildout/pack4'
Develop: '/sample-buildout/pack4'
Installing pack1.
Installing pack1.
Couldn't find index page for 'pack5' (maybe misspelled?)
...
Getting distribution for 'pack5'.
While:
While:
Installing pack1.
Installing pack1.
Getting distribution for 'pack5'.
Getting distribution for 'pack5'.
...
@@ -1979,8 +1979,7 @@ def dealing_with_extremely_insane_dependencies():
...
@@ -1979,8 +1979,7 @@ def dealing_with_extremely_insane_dependencies():
Getting required 'pack5'
Getting required 'pack5'
required by pack4 0.0.0.
required by pack4 0.0.0.
We have no distributions for pack5 that satisfies 'pack5'.
We have no distributions for pack5 that satisfies 'pack5'.
Couldn't find index page for 'pack5' (maybe misspelled?)
...
Getting distribution for 'pack5'.
While:
While:
Installing pack1.
Installing pack1.
Getting distribution for 'pack5'.
Getting distribution for 'pack5'.
...
@@ -2499,7 +2498,7 @@ def make_sure_versions_dont_cancel_extras():
...
@@ -2499,7 +2498,7 @@ def make_sure_versions_dont_cancel_extras():
"""
"""
There was a bug that caused extras in requirements to be lost.
There was a bug that caused extras in requirements to be lost.
>>> open('setup.py', 'w').write('''
>>>
_ =
open('setup.py', 'w').write('''
... from setuptools import setup
... from setuptools import setup
... setup(name='extraversiondemo', version='1.0',
... setup(name='extraversiondemo', version='1.0',
... url='x', author='x', author_email='x',
... url='x', author='x', author_email='x',
...
@@ -3064,6 +3063,8 @@ def test_suite():
...
@@ -3064,6 +3063,8 @@ def test_suite():
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_egg_py,
zc.buildout.testing.normalize_egg_py,
zc.buildout.testing.normalize___pycache__,
(re.compile(r'
^
(
\
w
+
\
.)
*
(
Missing
\
w
+
:
)
'), '
\
2
'),
(re.compile("buildout: Running
\
S*se
t
up.py"),
(re.compile("buildout: Running
\
S*se
t
up.py"),
'
buildout
:
Running
setup
.
py
'),
'
buildout
:
Running
setup
.
py
'),
(re.compile('
distribute
-
\
S
+-
'),
(re.compile('
distribute
-
\
S
+-
'),
...
@@ -3083,7 +3084,8 @@ def test_suite():
...
@@ -3083,7 +3084,8 @@ def test_suite():
),
),
(re.compile(r'^[*]...'), '...'),
(re.compile(r'^[*]...'), '...'),
# for
# for
# bug_92891_bootstrap_crashes_with_egg_recipe_in_buildout_section
# bug_92891
# bootstrap_crashes_with_egg_recipe_in_buildout_section
(re.compile(r"
Unused
options
for
buildout
:
'eggs'
'scripts'
\
.
"),
(re.compile(r"
Unused
options
for
buildout
:
'eggs'
'scripts'
\
.
"),
"
Unused
options
for
buildout
:
'scripts'
'eggs'
.
"),
"
Unused
options
for
buildout
:
'scripts'
'eggs'
.
"),
]),
]),
...
...
zc.recipe.egg_/src/zc/recipe/egg/api.txt
View file @
407036cd
...
@@ -21,7 +21,7 @@ around the egg recipe:
...
@@ -21,7 +21,7 @@ around the egg recipe:
... import zc.recipe.egg
... import zc.recipe.egg
...
...
... def print_(*args):
... def print_(*args):
... sys.stdout.write(' '.join(map(str, args)))
... sys.stdout.write(' '.join(map(str, args))
+ '\n'
)
...
...
... class Sample:
... class Sample:
...
...
...
...
zc.recipe.egg_/src/zc/recipe/egg/custom.txt
View file @
407036cd
...
@@ -158,7 +158,7 @@ Let's define a script that uses out ext demo:
...
@@ -158,7 +158,7 @@ Let's define a script that uses out ext demo:
... """
... """
... import extdemo, sys
... import extdemo, sys
... def print_(*args):
... def print_(*args):
... sys.stdout.write(' '.join(map(str, args)))
... sys.stdout.write(' '.join(map(str, args))
+ '\n'
)
... def main():
... def main():
... print_(extdemo.val)
... print_(extdemo.val)
... """)
... """)
...
...
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