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
ab708739
Commit
ab708739
authored
Jan 11, 2013
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 3 (It's like windows, but for unix)
parent
9c625540
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
src/zc/buildout/bootstrap_cl_settings.test
src/zc/buildout/bootstrap_cl_settings.test
+6
-6
src/zc/buildout/buildout.txt
src/zc/buildout/buildout.txt
+3
-1
src/zc/buildout/configparser.test
src/zc/buildout/configparser.test
+3
-1
No files found.
src/zc/buildout/bootstrap_cl_settings.test
View file @
ab708739
...
...
@@ -21,12 +21,12 @@ Some people pass buildout settings to bootstrap.
... parts =
... '''
)
>>>
write
(
'bootstrap.py'
,
open
(
bootstrap_py
)
.
read
())
>>>
print
'X'
;
print
system
(
>>>
print
_
(
'X'
);
print_
(
system
(
...
zc
.
buildout
.
easy_install
.
_safe_arg
(
sys
.
executable
)
+
...
' bootstrap.py buildout:directory='
+
top
+
...
' -c'
+
join
(
'buildout'
,
'buildout.cfg'
)
...
)
;
print
'X'
# doctest: +ELLIPSIS
X
...
)
);
print_
(
'X'
)
# doctest: +ELLIPSIS
X
...
Creating
directory
'/top/bin'
.
Creating
directory
'/top/parts'
.
Creating
directory
'/top/eggs'
.
...
...
@@ -44,13 +44,13 @@ They might do it with init, but no worries:
>>>
mkdir
(
top
,
'buildout'
)
>>>
os
.
chdir
(
top
)
>>>
write
(
'bootstrap.py'
,
open
(
bootstrap_py
)
.
read
())
>>>
print
'X'
;
print
system
(
>>>
print
_
(
'X'
);
print_
(
system
(
...
zc
.
buildout
.
easy_install
.
_safe_arg
(
sys
.
executable
)
+
...
' bootstrap.py buildout:directory='
+
top
+
...
' -c'
+
join
(
'buildout'
,
'buildout.cfg'
)
+
...
' init'
...
)
;
print
'X'
# doctest: +ELLIPSIS
X
...
)
);
print_
(
'X'
)
# doctest: +ELLIPSIS
X
...
Creating
'/top/buildout/buildout.cfg'
.
Creating
directory
'/top/bin'
.
Creating
directory
'/top/parts'
.
...
...
src/zc/buildout/buildout.txt
View file @
ab708739
...
...
@@ -725,7 +725,9 @@ For exampe, in::
.. -> text
>>> import pprint, StringIO, zc.buildout.configparser
>>> try: import StringIO
... except ImportError: import io as StringIO
>>> import pprint, zc.buildout.configparser
>>> pprint.pprint(zc.buildout.configparser.parse(StringIO.StringIO(
... text), 'test'))
{'foo': {'bar': '1', 'baz': 'a\nb\nc'}}
...
...
src/zc/buildout/configparser.test
View file @
ab708739
...
...
@@ -37,7 +37,9 @@ First, an example that illustrates a well-formed configuration::
..
->
text
>>>
import
pprint
,
StringIO
,
zc
.
buildout
.
configparser
>>>
try
:
import
StringIO
...
except
ImportError
:
import
io
as
StringIO
>>>
import
pprint
,
zc
.
buildout
.
configparser
>>>
pprint
.
pprint
(
zc
.
buildout
.
configparser
.
parse
(
StringIO
.
StringIO
(
...
text
),
'test'
))
{
's1'
:
{
'a'
:
'1'
},
...
...
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