2015-03-25 9 views
0

Существует ли повторяющийся способ создания более старых образцов Plone buildouts?Ищете buildout.cfg для старой версии Plone (pre-3.2)

В частности, я ищу формат форматирования, который использовался для релизов до Plone 3.2, так как это был первый релиз, поставляемый по умолчанию с помощью buildout. Я знаю, что там есть Plout 3.x, но googling для меня не помог.

Я пытаюсь преобразовать экземпляр проекта Plone 3.0.4, который был настроен с помощью унифицированного установщика в buildout. Я хотел бы получить повторяемый, документированный процесс установки, перед тем выяснить, что делать с кодовым, и большинством из доступных примеров для Plone 4.x

ответ

3

Это основной шаблон производства paster create -t plone3_buildout (старый ZopeSkel < 3.0). Я использовал Plone версии 3.1 ниже, вы должны настроить его с помощью своей версии (... или просто: используйте ZopeSkel, как и я).

[buildout] 
parts = 
    plone 
    zope2 
    productdistros 
    instance 
    zopepy 

versions = versions 


# Add additional egg download sources here. dist.plone.org contains archives 
# of Plone packages. 
find-links = 
    http://dist.plone.org 
    http://dist.plone.org/thirdparty 

# Add additional eggs here 
# elementtree is required by Plone 
eggs = 
    elementtree 

# Reference any eggs you are developing here, one per line 
# e.g.: develop = src/my.package 
develop = 

[versions] 
# Version pins for new style products go here 
plone.recipe.zope2instance = 3.6 

[plone] 
# For more information on this step and configuration options see: 
# http://pypi.python.org/pypi/plone.recipe.plone 
recipe = plone.recipe.plone==3.1 


[zope2] 
# For more information on this step and configuration options see: 
# http://pypi.python.org/pypi/plone.recipe.zope2install 
recipe = plone.recipe.zope2install 
fake-zope-eggs = true 
url = ${plone:zope2-url} 

# Use this section to download additional old-style products. 
# List any number of URLs for product tarballs under URLs (separate 
# with whitespace, or break over several lines, with subsequent lines 
# indented). If any archives contain several products inside a top-level 
# directory, list the archive file name (i.e. the last part of the URL, 
# normally with a .tar.gz suffix or similar) under 'nested-packages'. 
# If any archives extract to a product directory with a version suffix, list 
# the archive name under 'version-suffix-packages'. 
[productdistros] 
# For more information on this step and configuration options see: 
# http://pypi.python.org/pypi/plone.recipe.distros 
recipe = plone.recipe.distros 
urls = 
nested-packages = 
version-suffix-packages = 

[instance] 
# For more information on this step and configuration options see: 
# http://pypi.python.org/pypi/plone.recipe.zope2instance 
recipe = plone.recipe.zope2instance 
zope2-location = ${zope2:location} 
user = admin:admin 
http-address = 8080 
#debug-mode = on 
#verbose-security = on 
# If you want Zope to know about any additional eggs, list them here. 
# This should include any development eggs you listed in develop-eggs above, 
# e.g. eggs = Plone my.package 
eggs = 
    ${buildout:eggs} 
    ${plone:eggs} 

# If you want to register ZCML slugs for any packages, list them here. 
# e.g. zcml = my.package my.other.package 
zcml = 

products = 
    ${buildout:directory}/products 
    ${productdistros:location} 
    ${plone:products} 

[zopepy] 
# For more information on this step and configuration options see: 
# http://pypi.python.org/pypi/zc.recipe.egg 
recipe = zc.recipe.egg 
eggs = ${instance:eggs} 
interpreter = zopepy 
extra-paths = ${zope2:location}/lib/python 
scripts = zopepy 

Ядро является plone.recipe.plone рецепт, используемый для старой Plone.

+0

Установка ZopeSkel == 2.21.2 в Python 2.4 virtualenv затем запустить шаблон plone3_buildout создает именно то, что мне нужно. Благодаря! –

+0

Вы делаете что-нибудь особенное, чтобы прикрепить setuptools к версии, поддерживающей Python 2.4? всякий раз, когда я запускаю buldout, сгенерированный с помощью plone3_buildout, он пытается пойти и извлечь setuptools == 14.3.1 –

+0

Не обращайте внимания на то, что правильная версия setuptoos под [версиями] работает. –

1
+1

Я попытался использовать это для plone-3-0, но в это время он, похоже, тянет Plone 5 и связанные с ним яйца, такие как Zope2, нет никакого яйца Plone для выпусков до 3.2, я думаю, что отсутствует значок версии где-то. https://gist.github.com/avolkov/674c9663374b79128297 –