Find requirement specs in a Plone buildout setup

前端 未结 5 1953
无人及你
无人及你 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条回答
  •  Happy的楠姐
    2021-01-18 04:00

    Basically there's three places to look for version-pinnings:

    1.) The requires-files of eggs released on PyPi, like Luca Fabbri pointed out, which you can search for pins like this:

    grep -r --include=requires.txt "dependency.to.search.for" path/to/eggs-cache
    

    2.) The setup.py-files of development-eggs, similar searchable like:

    grep -r --include=setup.py "dependency.to.search.for" path/to/dev-eggs-cache
    

    3.) The [versions]-part of config-files, where in this case the version.cfg is pulling more version-configs in, via its extends-option and the pulled one's might also specify more configs via extends.

    You're lucky, admired M. v. Rees has shared a snippet, on how to get all pinnings of all Plone versions: https://gist.github.com/mauritsvanrees/99cb4a25b622479e7dc3

提交回复
热议问题