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
318ef243
Commit
318ef243
authored
Mar 11, 2013
by
pombredanne
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'buildout/master' into header_expressions
parents
6176fc44
bbfa363c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
17 deletions
+40
-17
CHANGES.rst
CHANGES.rst
+18
-17
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+13
-0
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+9
-0
No files found.
CHANGES.rst
View file @
318ef243
...
@@ -23,13 +23,13 @@ correct mistakes made in buildout 1.
...
@@ -23,13 +23,13 @@ correct mistakes made in buildout 1.
with virtualenv, or use a clean build of Python to begin with.
with virtualenv, or use a clean build of Python to begin with.
Providing isolation was a noble goal, but it's implementation
Providing isolation was a noble goal, but it's implementation
complicated buildouts implementation too much.
complicated buildout
'
s implementation too much.
- Buildout no-longer supports using multiple versions of Python in a
- Buildout no-longer supports using multiple versions of Python in a
single buildout. This too was a noble goal, but added too much
single buildout. This too was a noble goal, but added too much
complexity to the implementation.
complexity to the implementation.
- Changed the configurati
i
on file format:
- Changed the configuration file format:
- Relative indentation in option values is retained if the first
- Relative indentation in option values is retained if the first
line is blank. (IOW, if the non-blank text is on the continuation
line is blank. (IOW, if the non-blank text is on the continuation
...
@@ -64,7 +64,7 @@ correct mistakes made in buildout 1.
...
@@ -64,7 +64,7 @@ correct mistakes made in buildout 1.
- Comments could begin with "rem".
- Comments could begin with "rem".
- Semicolons could be used to start inline comments, but only if
- Semicolons could be used to start inline comments, but only if
prece
e
ded by a whitespace character.
preceded by a whitespace character.
See `Configuration file syntax`_.
See `Configuration file syntax`_.
...
@@ -76,6 +76,7 @@ correct mistakes made in buildout 1.
...
@@ -76,6 +76,7 @@ correct mistakes made in buildout 1.
- Buildout no-longer installs zipped eggs. (Distribute may still
- Buildout no-longer installs zipped eggs. (Distribute may still
install a zipped egg of itself during the bootstrapping process.)
install a zipped egg of itself during the bootstrapping process.)
The ``buildout:unzip`` option has been removed.
- Buildout no-longer supports setuptools. It now uses distribute
- Buildout no-longer supports setuptools. It now uses distribute
exclusively.
exclusively.
...
@@ -135,7 +136,7 @@ correct mistakes made in buildout 1.
...
@@ -135,7 +136,7 @@ correct mistakes made in buildout 1.
python bootstrap.py init BeautifulSoup
python bootstrap.py init BeautifulSoup
- Added buildout:socket-timout option so that socket timeout can be configured
- Added buildout:socket-tim
e
out option so that socket timeout can be configured
both from command line and from config files. (gotcha)
both from command line and from config files. (gotcha)
- Distutils-style scripts are also installed now (for instance pyflakes' and
- Distutils-style scripts are also installed now (for instance pyflakes' and
...
@@ -161,7 +162,7 @@ correct mistakes made in buildout 1.
...
@@ -161,7 +162,7 @@ correct mistakes made in buildout 1.
Fixed: relative-paths weren't honored when bootstrapping or upgrading
Fixed: relative-paths weren't honored when bootstrapping or upgrading
(which is how the buildout script gets generated).
(which is how the buildout script gets generated).
Fixed: initialization code wasn't included in interpeter scripts.
Fixed: initialization code wasn't included in interp
r
eter scripts.
Fixed: macro inheritance bug, https://github.com/buildout/buildout/pull/37
Fixed: macro inheritance bug, https://github.com/buildout/buildout/pull/37
...
@@ -337,14 +338,14 @@ Bugs fixed:
...
@@ -337,14 +338,14 @@ Bugs fixed:
1.1.0 (2008-07-19)
1.1.0 (2008-07-19)
==================
==================
- Added a buildout-level unzip option t
p
change the default policy for
- Added a buildout-level unzip option t
o
change the default policy for
unzipping zip-safe eggs.
unzipping zip-safe eggs.
- Tracebacks are now printed for internal errors (as opposed to user
- Tracebacks are now printed for internal errors (as opposed to user
errors) even without the -D option.
errors) even without the -D option.
- pyc and pyo files are regenerated for installed eggs so that the
- pyc and pyo files are regenerated for installed eggs so that the
stored path in code objects matches the
the
install location.
stored path in code objects matches the install location.
1.0.6 (2008-06-13)
1.0.6 (2008-06-13)
==================
==================
...
@@ -356,7 +357,7 @@ Bugs fixed:
...
@@ -356,7 +357,7 @@ Bugs fixed:
Thanks tarek for pointing this out. (seletz)
Thanks tarek for pointing this out. (seletz)
- fixed the test for the += -= syntax in buildout.txt as the test
- fixed the test for the += -= syntax in buildout.txt as the test
was actually wron
n
g. The original implementation did a split/join
was actually wrong. The original implementation did a split/join
on whitespace, and later on that was corrected to respect the original
on whitespace, and later on that was corrected to respect the original
EOL setting, the test was not updated, though. (seletz)
EOL setting, the test was not updated, though. (seletz)
...
@@ -486,7 +487,7 @@ Feature Changes
...
@@ -486,7 +487,7 @@ Feature Changes
Feature Changes
Feature Changes
---------------
---------------
- Now, final distributions are prefered over non-final versions. If
- Now, final distributions are prefer
r
ed over non-final versions. If
both final and non-final versions satisfy a requirement, then the
both final and non-final versions satisfy a requirement, then the
final version will be used even if it is older. The normal way to
final version will be used even if it is older. The normal way to
override this for specific packages is to specifically require a
override this for specific packages is to specifically require a
...
@@ -560,7 +561,7 @@ Feature Changes
...
@@ -560,7 +561,7 @@ Feature Changes
- Except when using the new init command, it is now an error to run
- Except when using the new init command, it is now an error to run
buildout without a configuration file.
buildout without a configuration file.
- In verbose mode, when adding distributions to fulf
u
l requirements of
- In verbose mode, when adding distributions to fulf
i
l requirements of
already-added distributions, we now show why the new distributions
already-added distributions, we now show why the new distributions
are being added.
are being added.
...
@@ -606,7 +607,7 @@ Bugs Fixed
...
@@ -606,7 +607,7 @@ Bugs Fixed
- 92891: bootstrap crashes with recipe option in buildout section.
- 92891: bootstrap crashes with recipe option in buildout section.
- 113085: Buildout exited with a zero exist status when internal errors
- 113085: Buildout exited with a zero exist status when internal errors
occured.
occur
r
ed.
1.0.0b23 (2007-03-19)
1.0.0b23 (2007-03-19)
...
@@ -668,7 +669,7 @@ Feature Changes
...
@@ -668,7 +669,7 @@ Feature Changes
- The easy_install module install and build functions now accept a
- The easy_install module install and build functions now accept a
versions argument that supplied to mapping from project name to
versions argument that supplied to mapping from project name to
version numbers. This can be used to fix version numbers for
version numbers. This can be used to fix version numbers for
required distributions and their depenencies.
required distributions and their depen
d
encies.
When a version isn't fixed, using either a versions option or using
When a version isn't fixed, using either a versions option or using
a fixed version number in a requirement, then a debug log message is
a fixed version number in a requirement, then a debug log message is
...
@@ -776,7 +777,7 @@ Feature Changes
...
@@ -776,7 +777,7 @@ Feature Changes
- A new command-line argument, -U, suppresses reading user defaults.
- A new command-line argument, -U, suppresses reading user defaults.
- You can now suppress use of an installed-part database
- You can now suppress use of an installed-part database
(e.g. .installed.cfg) by sp
r
ifying an empty value for the buildout
(e.g. .installed.cfg) by sp
ec
ifying an empty value for the buildout
installed option.
installed option.
Bugs Fixed
Bugs Fixed
...
@@ -847,7 +848,7 @@ Bugs Fixed
...
@@ -847,7 +848,7 @@ Bugs Fixed
- We treat setuptools as a dependency of any distribution that
- We treat setuptools as a dependency of any distribution that
(declares that it) uses namespace packages, whether it declares
(declares that it) uses namespace packages, whether it declares
setuptools as a dependency or not. This wasn't working for eggs
setuptools as a dependency or not. This wasn't working for eggs
intalled by virtue of being dependencies.
in
s
talled by virtue of being dependencies.
1.0.0b12 (2006-10-24)
1.0.0b12 (2006-10-24)
...
@@ -890,7 +891,7 @@ Feature Changes
...
@@ -890,7 +891,7 @@ Feature Changes
- Added a recipe update method. Now install is only called when a part
- Added a recipe update method. Now install is only called when a part
is installed for the first time, or after an uninstall. Otherwise,
is installed for the first time, or after an uninstall. Otherwise,
update is called. For backward compatibility, recipes that don't
update is called. For backward compatibility, recipes that don't
define update meth
i
ods are still supported.
define update methods are still supported.
- If a distribution defines namespace packages but fails to declare
- If a distribution defines namespace packages but fails to declare
setuptools as one of its dependencies, we now treat setuptools as an
setuptools as one of its dependencies, we now treat setuptools as an
...
@@ -906,7 +907,7 @@ Bugs Fixed
...
@@ -906,7 +907,7 @@ Bugs Fixed
from develop sections.
from develop sections.
- Running a non-local buildout command (one not installed in the
- Running a non-local buildout command (one not installed in the
buildout)
ket
to a hang if there were new versions of buildout or
buildout)
led
to a hang if there were new versions of buildout or
setuptools were available. Now we issue a warning and don't
setuptools were available. Now we issue a warning and don't
upgrade.
upgrade.
...
@@ -993,7 +994,7 @@ support.
...
@@ -993,7 +994,7 @@ support.
option names.
option names.
Substitutions with invalid names were ignored, which caused
Substitutions with invalid names were ignored, which caused
mis
s
leading failures downstream.
misleading failures downstream.
- Improved error handling. No longer show tracebacks for user errors.
- Improved error handling. No longer show tracebacks for user errors.
...
...
src/zc/buildout/buildout.py
View file @
318ef243
...
@@ -1680,6 +1680,10 @@ Options:
...
@@ -1680,6 +1680,10 @@ Options:
Print this message and exit.
Print this message and exit.
--version
Print buildout version number and exit.
-v
-v
Increase the level of verbosity. This option can be used multiple times.
Increase the level of verbosity. This option can be used multiple times.
...
@@ -1785,10 +1789,17 @@ Commands:
...
@@ -1785,10 +1789,17 @@ Commands:
COMPUTED_VALUE, DEFAULT_VALUE, COMMAND_LINE_VALUE).
COMPUTED_VALUE, DEFAULT_VALUE, COMMAND_LINE_VALUE).
"""
"""
def
_help
():
def
_help
():
print_
(
_usage
)
print_
(
_usage
)
sys
.
exit
(
0
)
sys
.
exit
(
0
)
def
_version
():
version
=
pkg_resources
.
working_set
.
find
(
pkg_resources
.
Requirement
.
parse
(
'zc.buildout'
)).
version
print_
(
"buildout version %s"
%
version
)
sys
.
exit
(
0
)
def
main
(
args
=
None
):
def
main
(
args
=
None
):
if
args
is
None
:
if
args
is
None
:
args
=
sys
.
argv
[
1
:]
args
=
sys
.
argv
[
1
:]
...
@@ -1851,6 +1862,8 @@ def main(args=None):
...
@@ -1851,6 +1862,8 @@ def main(args=None):
elif
op
:
elif
op
:
if
orig_op
==
'--help'
:
if
orig_op
==
'--help'
:
_help
()
_help
()
elif
orig_op
==
'--version'
:
_version
()
_error
(
"Invalid option"
,
'-'
+
op
[
0
])
_error
(
"Invalid option"
,
'-'
+
op
[
0
])
elif
'='
in
args
[
0
]:
elif
'='
in
args
[
0
]:
option
,
value
=
args
.
pop
(
0
).
split
(
'='
,
1
)
option
,
value
=
args
.
pop
(
0
).
split
(
'='
,
1
)
...
...
src/zc/buildout/tests.py
View file @
318ef243
...
@@ -595,6 +595,15 @@ def test_help():
...
@@ -595,6 +595,15 @@ def test_help():
...
...
"""
"""
def
test_version
():
"""
>>> buildout = os.path.join(sample_buildout, 'bin', 'buildout')
>>> print_(system(buildout+' --version'))
... # doctest: +ELLIPSIS
buildout version ...
"""
def
test_bootstrap_with_extension
():
def
test_bootstrap_with_extension
():
"""
"""
We had a problem running a bootstrap with an extension. Let's make
We had a problem running a bootstrap with an extension. Let's make
...
...
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