Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
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
Commits
389ec72f
Commit
389ec72f
authored
Nov 19, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ecbe4013
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
24 deletions
+59
-24
component/ZEO/buildout.cfg
component/ZEO/buildout.cfg
+2
-0
component/ZODB/buildout.cfg
component/ZODB/buildout.cfg
+57
-24
No files found.
component/ZEO/buildout.cfg
View file @
389ec72f
...
...
@@ -31,6 +31,8 @@ init =
# update [versions] from what is needed by ZEO<X>
for _ in zeo_x['egg_versions'].splitlines():
if _.startswith('#'):
continue
egg, eq, version = _.split() # 'transaction = 1.7.0'
assert eq == '='
self.buildout['versions'][egg] = version
...
...
component/ZODB/buildout.cfg
View file @
389ec72f
...
...
@@ -22,14 +22,24 @@ major = 4
init =
# link/depend ZODB -> ZODB<X>
zodb_x = 'ZODB'+options['major']
options['depends'] = '$${%s:egg}' % zodb_x
zodb_x = self.buildout[zodb_x]
options['depends'] = '$${%s:egg}' % zodb_x.name
options['egg'] = zodb_x['egg']
options['location'] = zodb_x['setup']
# for ZODB3 also depend on _ZODB3-{ZODB,persistent,BTrees,ZEO}.
# installing those eggs ensures forward compatibiluty with ZODB4/5 where
# instead of single ZODB3 egg, there are separate ZDOB,persistent,BTrees,... distributions.
if options['major'] == '3':
for egg in ['ZODB','persistent','BTrees','ZEO']:
z3egg = self.buildout['_ZODB3-%s' % egg]
options['depends'] += '\n$${%s:egg}' % z3egg.name
# update [versions] from what is needed by ZODB<X>
# XXX do not change egg version if it is already speficified in [versions] ?
for _ in zodb_x['egg_versions'].splitlines():
if _.startswith('#'):
continue
egg, eq, version = _.split() # 'transaction = 1.7.0'
assert eq == '='
self.buildout['versions'][egg] = version
...
...
@@ -52,18 +62,32 @@ repository = https://lab.nexedi.com/kirr/ZODB.git
#location = ${buildout:parts-directory}/ZODB # XXX
git-executable = ${git:location}/bin/git
# ZODB4: we maintain our own 4-nxd branch with patches for wendelin.core to work
# correctly. The patches are backports of what is in ZODB master (ZODB5).
[ZODB4]
[_ZODB45]
recipe = zc.recipe.egg:develop
setup = ${ZODB4-repository:location}
egg = ZODB
depends = ${persistent:egg} ${BTrees:egg}
# eggs versions that are used by all ZODB{4,5}.
egg_versions =
transaction = 1.7.0
# TODO update to 4.7.3 once it is released
Btrees = 4.5.1
persistent = 4.6.4
# TODO update to 2.0.0 once NEO stops doing bytes._pack = ...
# https://lab.nexedi.com/nexedi/slapos/commit/27f574bc
zodbpickle = 1.0.4
# XXX explain about ZODB3
ZODB3 = 3.11.0
# XXX explain about ZODB3
# ZODB4: we maintain our own 4-nxd branch with patches for wendelin.core to work
# correctly. The patches are backports of what is in ZODB master (ZODB5).
[ZODB4]
<= _ZODB45
setup = ${ZODB4-repository:location}
egg_versions +=
transaction = 1.7.0
[ZODB4-repository]
<= _ZODB-git-repository
...
...
@@ -90,18 +114,36 @@ location = ${buildout:parts-directory}/ZODB3
branch = 3.10-nxd--t
#revision= ... XXX pin
# Stub eggs for ZODB3 to be forward-compatible with ZODB4/5.
[_ZODB3-ZODB45-compat-egg]
recipe = zc.recipe.egg:develop
setup = ${ZODB3-repository:location}/ZODB45-compat/${:egg}/setup.py
depends = ${ZODB3:recipe}
[_ZODB3-ZODB]
<= _ZODB3-ZODB45-compat-egg
egg = ZODB
[_ZODB3-persistent]
<= _ZODB3-ZODB45-compat-egg
egg = persistent
[_ZODB3-BTrees]
<= _ZODB3-ZODB45-compat-egg
egg = BTrees
[_ZODB3-ZEO]
<= _ZODB3-ZODB45-compat-egg
egg = ZEO
# ZODB5: pristine upstream
[ZODB5]
recipe = zc.recipe.egg:develop
setup = ${ZODB5-repository:location}
egg = ZODB
depends = ${persistent:egg} ${BTrees:egg}
<= _ZODB45
setup = ${ZODB5-repository:location}
egg_versions =
transaction = 2.4.0
ZODB3 = 3.11.0
# XXX explain about ZODB3
[ZODB5-repository]
<= _ZODB-git-repository
...
...
@@ -109,6 +151,7 @@ location = ${buildout:parts-directory}/ZODB5
branch = master
#revision= ... XXX pin
# XXX: buildout fails to install properly eggs with setup_requires
[BTrees]
recipe = zc.recipe.egg:custom
...
...
@@ -120,13 +163,3 @@ recipe = zc.recipe.egg:custom
egg = ${:_buildout_section_name_}
setup-eggs = ${python-cffi:egg}
###
# eggs versions that are used by all all ZODB<X>.
[versions]
# TODO update to 4.7.3 once it is released
Btrees = 4.5.1
persistent = 4.6.4
# TODO update to 2.0.0 once NEO stops doing bytes._pack = ...
# https://lab.nexedi.com/nexedi/slapos/commit/27f574bc
zodbpickle = 1.0.4
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