Skip to main content

rt.ploneversions

Retrieve information from dist.plone.org to safely and easily pin your egg versions.

Motivation

It is a common practice, for Plone buildouts, to extend online configuration files that declare known good working versions. Those external resources can, in turn, extend other remote resources.

This means that your buildout relies on the assumption that the all those external resources are available. If they are not buildout will fail: a network problem can really turn out in a catastrophe!

This already happened. Luckily there are workarounds to solve this issue:

Another (minor) issue with this approach is that you have to wait for the resources to be fetched before starting.

Some other times, you may not want to include network resources, e.g. because your customer network will not easily allow you to fetch them.

Given that I don’t want to cross my finger and wait for those resources to be retrieved on the net, I started including all those externals known good working versions in a file.

It is tedious to do it by hand, because you have to fetch and merge some files in the correct order, so I wrote the ploneversions script.

I hope you will enjoy it!

Installation

The latest version of this package supports only Python 3. If you need to use this package on Python2 please use the 0.9.2 version.

You can install rt.ploneversions with pip or easy_install:

pip install rt.ploneversions

Usage

Launch the ploneversions script passing a valid Plone version.

Example output (with some ellipses):

$ ploneversions 4.3-latest
## https://download.zope.org/zopetoolkit/index/1.0.8/zopeapp-versions.cfg
zope.app.applicationcontrol = 3.5.10
...
zope.rdb = 3.5.0

## https://download.zope.org/zopetoolkit/index/1.0.8/ztk-versions.cfg
zope.annotation = 3.5.0
...
zope.kgs = 1.2.0

## https://download.zope.org/Zope2/index/2.13.21/versions.cfg
Zope2 = 2.13.21
...
zope.testbrowser = 3.11.1

## https://dists.plone.org/release/4.3-latest/versions.cfg
docutils = 0.9.1
...
zc.relation = 1.0

You may want to redirect this output to a file, e.g.:

$ ploneversions 4.3-latest > versions.cfg

and add this file to your buildout.

You can check the available Plone versions here https://dist.plone.org/release.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog for rt.ploneversions

1.0.0 (2020-03-10)

  • Better error message when we cannot read the versions.cfg from dist.plone.org

  • Python 3 support. If you need to use this package on Python2 please use the 0.9.2 version. [ale-rt]

0.9.2 (2019-10-26)

  • Use https URLs [ale-rt]

0.9.1 (2013-10-06)

  • Suggest usage [ale-rt]

0.9.0 (2013-10-01)

  • Initial release [ale-rt]

Release files for rt.ploneversions 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rt.ploneversions 1.0.0
File Size Uploaded
rt.ploneversions-1.0.0.tar.gz 13.5 kB Details

Release files / rt.ploneversions-1.0.0.tar.gz

Download URL rt.ploneversions-1.0.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
98462b566d8a5e2dbe854b182a940ce1b571f4aa4572f6b090e60e8aac914b28
BLAKE2b-256 checksum
How to use checksums
f6128bde89eebb966f23a1e60a377503ee77d46f5c3780b9f1e873636450adbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.14

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page