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
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
60b7dbd2
Commit
60b7dbd2
authored
Nov 30, 2012
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure buildout uses zc.recipe.egg>=2.0.0a3, which mainly matters
for Python 3.
parent
5d1ca5e7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
6 deletions
+30
-6
CHANGES.rst
CHANGES.rst
+3
-0
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+1
-1
src/zc/buildout/buildout.txt
src/zc/buildout/buildout.txt
+2
-2
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+24
-3
No files found.
CHANGES.rst
View file @
60b7dbd2
...
...
@@ -13,6 +13,9 @@ Change History
- Versions in versions sections can now be simple constraints, like
>=2.0dev in addition to being simple versions.
Buildout 2 leverages this to make sure it used
zc.recipe.egg>=2.0.0a3, which mainly matters for Python 3.
2.0.0a4 (2012-11-19)
====================
...
...
src/zc/buildout/buildout.py
View file @
60b7dbd2
...
...
@@ -286,7 +286,7 @@ class Buildout(DictMixin):
self
.
_error
(
'Invalid value for newest option: %s'
,
newest
)
self
.
newest
=
(
newest
==
'true'
)
versions
=
{}
versions
=
{
'zc.recipe.egg'
:
'>=2.0.0a3'
}
self
.
versions
=
versions
versions_section
=
options
.
get
(
'versions'
)
if
versions_section
:
...
...
src/zc/buildout/buildout.txt
View file @
60b7dbd2
...
...
@@ -2578,8 +2578,8 @@ or paths to use:
>>> remove('setup.cfg')
>>> print_(system(buildout + ' -csetup.cfg init demo other ./src'), end='')
Creating '/sample-bootstrapped/setup.cfg'.
Getting distribution for 'zc.recipe.egg'.
Got zc.recipe.egg
1.3.3dev.
Getting distribution for 'zc.recipe.egg
>=2.0.0a3
'.
Got zc.recipe.egg
Installing py.
Getting distribution for 'demo'.
Got demo 0.3.
...
...
src/zc/buildout/tests.py
View file @
60b7dbd2
...
...
@@ -2695,6 +2695,27 @@ def test_constrained_requirement():
... print_('failed', o, c, g, '!=', e)
"""
def
want_new_zcrecipeegg
():
"""
>>> write('buildout.cfg',
... '''
... [buildout]
... parts = egg
... [egg]
... recipe = zc.recipe.egg <2dev
... eggs = demo
... ''')
>>> print_(system(join('bin', 'buildout')), end='') # doctest: +ELLIPSIS
The constraint, >=2.0.0a3,...
While:
Installing.
Getting section egg.
Initializing section egg.
Installing recipe zc.recipe.egg <2dev.
Error: Bad constraint >=2.0.0a3 zc.recipe.egg<2dev
"""
######################################################################
def
create_sample_eggs
(
test
,
executable
=
sys
.
executable
):
...
...
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