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
Jérome Perrin
slapos.buildout
Commits
bbdf3767
Commit
bbdf3767
authored
Jun 09, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix URL normalizing out the 'Adding find links...' output from setuptools 0.7.
Use that normalizer everywhere.
parent
a0669e31
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+2
-1
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+8
-0
No files found.
src/zc/buildout/testing.py
View file @
bbdf3767
...
@@ -525,8 +525,9 @@ normalize_exception_type_for_python_2_and_3 = (
...
@@ -525,8 +525,9 @@ normalize_exception_type_for_python_2_and_3 = (
not_found = (re.compile(r'
Not
found
:
[
^
\
n
]
+/
(
\
w
|
\
.)
+/
\
r
?
\
n
'), '')
not_found = (re.compile(r'
Not
found
:
[
^
\
n
]
+/
(
\
w
|
\
.)
+/
\
r
?
\
n
'), '')
# Setuptools now pulls in dependencies when installed.
adding_find_link = (re.compile(r"Adding find link '
[
^
']+'"
adding_find_link = (re.compile(r"Adding find link '
[
^
']+'"
r"
from
setuptools
0.7
/
\
r
?
\
n
"), '')
r"
from
setuptools
.
*
\
r
?
\
n
"), '')
ignore_not_upgrading = (
ignore_not_upgrading = (
re.compile(
re.compile(
...
...
src/zc/buildout/tests.py
View file @
bbdf3767
...
@@ -3271,6 +3271,7 @@ def test_suite():
...
@@ -3271,6 +3271,7 @@ def test_suite():
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.not_found,
zc.buildout.testing.not_found,
zc.buildout.testing.adding_find_link,
# (re.compile(r"Installing '
zc
.
buildout
>=
\
S
+
"), ''),
# (re.compile(r"Installing '
zc
.
buildout
>=
\
S
+
"), ''),
# (re.compile(r"
Getting
distribution
for
'zc.buildout >=
\
S+
"
),
# (re.compile(r"
Getting
distribution
for
'zc.buildout >=
\
S+
"
),
# ''),
# ''),
...
@@ -3305,6 +3306,7 @@ def test_suite():
...
@@ -3305,6 +3306,7 @@ def test_suite():
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
zc.buildout.testing.not_found,
zc.buildout.testing.not_found,
zc.buildout.testing.adding_find_link,
(re.compile('
zc
.
buildout
.
buildout
.
MissingOption
'),
(re.compile('
zc
.
buildout
.
buildout
.
MissingOption
'),
'
MissingOption
'),
'
MissingOption
'),
(re.compile(r'
\
S
+
buildout
.
py
'), '
buildout
.
py
'),
(re.compile(r'
\
S
+
buildout
.
py
'), '
buildout
.
py
'),
...
@@ -3326,6 +3328,7 @@ def test_suite():
...
@@ -3326,6 +3328,7 @@ def test_suite():
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.not_found,
zc.buildout.testing.not_found,
zc.buildout.testing.adding_find_link,
normalize_bang,
normalize_bang,
normalize_S,
normalize_S,
# (re.compile(r"Installing '
zc
.
buildout
>=
\
S
+
"), ''),
# (re.compile(r"Installing '
zc
.
buildout
>=
\
S
+
"), ''),
...
@@ -3351,6 +3354,7 @@ def test_suite():
...
@@ -3351,6 +3354,7 @@ def test_suite():
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_egg_py,
zc.buildout.testing.normalize_egg_py,
zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
zc.buildout.testing.adding_find_link,
zc.buildout.testing.not_found,
zc.buildout.testing.not_found,
normalize_bang,
normalize_bang,
normalize_S,
normalize_S,
...
@@ -3375,6 +3379,7 @@ def test_suite():
...
@@ -3375,6 +3379,7 @@ def test_suite():
checker=renormalizing.RENormalizing([
checker=renormalizing.RENormalizing([
zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
zc.buildout.testing.not_found,
zc.buildout.testing.not_found,
zc.buildout.testing.adding_find_link,
(re.compile('
at
-
?
0
x
[
^>
]
+
'), '
<
MEM
ADDRESS
>
'),
(re.compile('
at
-
?
0
x
[
^>
]
+
'), '
<
MEM
ADDRESS
>
'),
(re.compile('
http
:
//
localhost
:[
0
-
9
]{
4
,
5
}
/
'),
(re.compile('
http
:
//
localhost
:[
0
-
9
]{
4
,
5
}
/
'),
'
http
:
//
localhost
/
'),
'
http
:
//
localhost
/
'),
...
@@ -3395,6 +3400,7 @@ def test_suite():
...
@@ -3395,6 +3400,7 @@ def test_suite():
zc.buildout.testing.normalize___pycache__,
zc.buildout.testing.normalize___pycache__,
zc.buildout.testing.not_found,
zc.buildout.testing.not_found,
zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
zc.buildout.testing.normalize_exception_type_for_python_2_and_3,
zc.buildout.testing.adding_find_link,
normalize_bang,
normalize_bang,
(re.compile(r'
^
(
\
w
+
\
.)
*
(
Missing
\
w
+
:
)
'), '
\
2
'),
(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"),
...
@@ -3434,6 +3440,7 @@ def test_suite():
...
@@ -3434,6 +3440,7 @@ def test_suite():
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.not_found,
zc.buildout.testing.not_found,
zc.buildout.testing.adding_find_link,
(re.compile('__buildout_signature__ = recipes-
\
S+
'
),
(re.compile('__buildout_signature__ = recipes-
\
S+
'
),
'__buildout_signature__ = recipes-SSSSSSSSSSS'),
'__buildout_signature__ = recipes-SSSSSSSSSSS'),
(re.compile('[-d] setuptools-
\
S+[.]egg
'
), 'setuptools.egg'),
(re.compile('[-d] setuptools-
\
S+[.]egg
'
), 'setuptools.egg'),
...
@@ -3470,6 +3477,7 @@ def test_suite():
...
@@ -3470,6 +3477,7 @@ def test_suite():
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_script,
zc.buildout.testing.not_found,
zc.buildout.testing.not_found,
normalize_bang,
normalize_bang,
zc.buildout.testing.adding_find_link,
(re.compile('Downloading.*setuptools.*egg
\
n
'), ''),
(re.compile('Downloading.*setuptools.*egg
\
n
'), ''),
]),
]),
))
))
...
...
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