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
a04b9201
Commit
a04b9201
authored
Aug 29, 2006
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try again
parent
27174f36
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 addition
and
1441 deletions
+1
-1441
buildout.cfg
buildout.cfg
+1
-1
zc.buildoutsupport/zc/__init__.py
zc.buildoutsupport/zc/__init__.py
+0
-5
zc.buildoutsupport/zc/buildoutsupport/__init__.py
zc.buildoutsupport/zc/buildoutsupport/__init__.py
+0
-1
zc.buildoutsupport/zc/buildoutsupport/easy_install.py
zc.buildoutsupport/zc/buildoutsupport/easy_install.py
+0
-461
zc.buildoutsupport/zc/buildoutsupport/easy_install.txt
zc.buildoutsupport/zc/buildoutsupport/easy_install.txt
+0
-440
zc.buildoutsupport/zc/buildoutsupport/testing.py
zc.buildoutsupport/zc/buildoutsupport/testing.py
+0
-418
zc.buildoutsupport/zc/buildoutsupport/tests.py
zc.buildoutsupport/zc/buildoutsupport/tests.py
+0
-115
No files found.
buildout.cfg
View file @
a04b9201
[buildout]
[buildout]
develop = zc.recipe.egg_ zc.recipe.testrunner
develop = zc.recipe.egg_ zc.recipe.testrunner
zc.buildoutsupport
parts = test
parts = test
# prevent slow access to cheeseshop:
# prevent slow access to cheeseshop:
...
...
zc.buildoutsupport/zc/__init__.py
deleted
100644 → 0
View file @
27174f36
try
:
__import__
(
'pkg_resources'
).
declare_namespace
(
__name__
)
except
:
# bootstrapping
pass
zc.buildoutsupport/zc/buildoutsupport/__init__.py
deleted
100644 → 0
View file @
27174f36
#
zc.buildoutsupport/zc/buildoutsupport/easy_install.py
deleted
100644 → 0
View file @
27174f36
This diff is collapsed.
Click to expand it.
zc.buildoutsupport/zc/buildoutsupport/easy_install.txt
deleted
100644 → 0
View file @
27174f36
This diff is collapsed.
Click to expand it.
zc.buildoutsupport/zc/buildoutsupport/testing.py
deleted
100644 → 0
View file @
27174f36
This diff is collapsed.
Click to expand it.
zc.buildoutsupport/zc/buildoutsupport/tests.py
deleted
100644 → 0
View file @
27174f36
##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""XXX short summary goes here.
$Id$
"""
import
os
,
re
,
shutil
,
sys
,
unittest
from
zope.testing
import
doctest
,
renormalizing
import
zc.buildout.testing
os_path_sep
=
os
.
path
.
sep
if
os_path_sep
==
'
\
\
'
:
os_path_sep
*=
2
def
easy_install_SetUp
(
test
):
zc
.
buildout
.
testing
.
buildoutSetUp
(
test
)
zc
.
buildout
.
testing
.
multi_python
(
test
)
zc
.
buildout
.
testing
.
add_source_dist
(
test
)
zc
.
buildout
.
testing
.
setUpServer
(
test
,
zc
.
buildout
.
testing
.
make_tree
(
test
))
class
PythonNormalizing
(
renormalizing
.
RENormalizing
):
def
_transform
(
self
,
want
,
got
):
if
'/xyzsample-install/'
in
want
:
got
=
got
.
replace
(
'-py2.4.egg'
,
'-py2.3.egg'
)
firstg
=
got
.
split
(
'
\
n
'
)[
0
]
firstw
=
want
.
split
(
'
\
n
'
)[
0
]
if
firstg
.
startswith
(
'#!'
)
and
firstw
.
startswith
(
'#!'
):
firstg
=
' '
.
join
(
firstg
.
split
()[
1
:])
got
=
firstg
+
'
\
n
'
+
'
\
n
'
.
join
(
got
.
split
(
'
\
n
'
)[
1
:])
firstw
=
' '
.
join
(
firstw
.
split
()[
1
:])
want
=
firstw
+
'
\
n
'
+
'
\
n
'
.
join
(
want
.
split
(
'
\
n
'
)[
1
:])
for
pattern
,
repl
in
self
.
patterns
:
want
=
pattern
.
sub
(
repl
,
want
)
got
=
pattern
.
sub
(
repl
,
got
)
return
want
,
got
def
check_output
(
self
,
want
,
got
,
optionflags
):
if
got
==
want
:
return
True
want
,
got
=
self
.
_transform
(
want
,
got
)
if
got
==
want
:
return
True
return
doctest
.
OutputChecker
.
check_output
(
self
,
want
,
got
,
optionflags
)
def
output_difference
(
self
,
example
,
got
,
optionflags
):
want
=
example
.
want
# If want is empty, use original outputter. This is useful
# when setting up tests for the first time. In that case, we
# generally use the differencer to display output, which we evaluate
# by hand.
if
not
want
.
strip
():
return
doctest
.
OutputChecker
.
output_difference
(
self
,
example
,
got
,
optionflags
)
# Dang, this isn't as easy to override as we might wish
original
=
want
want
,
got
=
self
.
_transform
(
want
,
got
)
# temporarily hack example with normalized want:
example
.
want
=
want
result
=
doctest
.
OutputChecker
.
output_difference
(
self
,
example
,
got
,
optionflags
)
example
.
want
=
original
return
result
def
test_suite
():
return
unittest
.
TestSuite
((
doctest
.
DocFileSuite
(
'easy_install.txt'
,
setUp
=
easy_install_SetUp
,
tearDown
=
zc
.
buildout
.
testing
.
buildoutTearDown
,
checker
=
PythonNormalizing
([
(
re
.
compile
(
"'"
"(
\
w:)?
"
"
[
%
(
sep
)
s
/
]
\
S
+
sample
-
install
[
%
(
sep
)
s
/
]
"
"
[
%
(
sep
)
s
/
]
?
(
dist
"
"
[
%
(
sep
)
s
/
])
?
"
% dict(sep=os_path_sep)),
'/sample-eggs/'),
(re.compile("
([
d
-
]
((
ext
)
?
demo
(
needed
)
?
|
other
)
"
"
-
\
d
[.]
\
d
-
py
)
\
d
[.]
\
d
(
-
[
^
.
\
t
\
n
]
+
)
?
[.]
egg
"),
'
\
\
1V.V.egg'),
(re.compile('(
\
n
?)- ([a-zA-Z_.-]+)-script.py
\
n
-
\
\
2.exe
\
n
'),
'
\
\
1-
\
\
2
\
n
'),
(re.compile('extdemo-1[.]4[.]tar[.]gz'), 'extdemo-1.4.zip'),
(re.compile('#!
\
S+py
t
hon
\
S+
'
), '#!python'),
]),
),
))
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
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