Skip to main content

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

Project description

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rt.ploneversions-1.0.0.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file rt.ploneversions-1.0.0.tar.gz.

File metadata

  • Download URL: rt.ploneversions-1.0.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rt.ploneversions-1.0.0.tar.gz
Algorithm Hash digest
SHA256 98462b566d8a5e2dbe854b182a940ce1b571f4aa4572f6b090e60e8aac914b28
MD5 3941d7c6b12685bf38a8953be6401c86
BLAKE2b-256 f6128bde89eebb966f23a1e60a377503ee77d46f5c3780b9f1e873636450adbf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page