Find requirement specs in a Plone buildout setup

前端 未结 5 1929
无人及你
无人及你 2021-01-18 03:21

I have a Plone site (something around 4.2.4, telling from a version.txt in the root directory) which I\'d like to update to a recent version (I found this how-t

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-18 04:09

    You can use "eggdeps" (search pypi for it) to get a tree of all dependencies in your buildout - perhaps this can be helpful. Add the egg to your buildout and rerun buildout. Do it on your original, working buildout configuration, before making the changes you mentioned. (Generating the eggdeps script requires buildout to finish successfully).

    add this to your buildout configuration:

    parts +=
        eggdeps
    

    ...

    [eggdeps]
    recipe = zc.recipe.egg
    eggs = tl.eggdeps
           ${instance:eggs}
    scripts = eggdeps
    

    Run buildout again. Now you have a script bin/eggdeps, that prints a tree of all dependencies. Run it:

    ./bin/eggdeps -n
    

    Example output:

    zope.app.pagetemplate 3.11.2
        setuptools 8.0.2
        zope.browserpage 3.12.2 ...
        zope.component 3.9.5 [hook] ...
        zope.configuration 3.7.4 ...
        zope.dublincore 3.7.0
            pytz 2013b0
            setuptools 8.0.2
            zope.component 3.9.5 ...
            zope.datetime 3.4.1 ...
            zope.interface 3.6.7 ...
            zope.lifecycleevent 3.6.2 ...
            zope.location 3.9.1 ...
            zope.schema 4.2.2 ...
            zope.security 3.7.4 ...
          [test]
            zope.annotation 3.5.0 ...
            zope.testing 3.9.7 ...
        zope.i18nmessageid 3.5.3 ...
        zope.interface 3.6.7 ...
        zope.pagetemplate 3.6.3 ...
        zope.schema 4.2.2 ...
    

提交回复
热议问题