Skip to main content

Plugins for release automation with zest.releaser.

Project description

spirit.releaser

spirit.releaser provides several plugins for zest.releaser. The plugins are registered globally and can be activated if needed.

Available Plugins

Exporting Diazo Themes as ZIP files

Plone allows us to upload diazo themes as zip files. This can be used when we don’t have the permission to install our theme on the server as a python package (e.g. within a shared hosting environment). spirit.releaser provides a hook which is run after the release has been done. Use the following options in your setup.cfg to enable the ZIP file export:

[spirit.releaser]
diazo_export.enabled = 1
diazo_export.path = src/my/package/theme
diazo_export.adjust_title = 1
diazo_export.adjust_theme_version = 1
diazo_export.theme_name = mypackage
diazo_export.enabled

Activate or deactivate the export.

diazo_export.path

Path relative from the package root to the folder containing the diazo resource files.

diazo_export.adjust_title

Append the version number of the package to the title in the zipped manifest.cfg file.

diazo_export.adjust_theme_version

Add or update the theme_version parameter with the current version number of the package.

diazo_export.theme_name

Add a custom name for the theme folder and exported zip file. Use this is you have a different name (id) for your theme, e.g. ‘mypackage’ instead of ‘my.package’.

Installation

Use in a buildout

[buildout]
parts += releaser

[releaser]
recipe = zc.recipe.egg:scripts
dependent-scripts = true
eggs =
    spirit.releaser
    my.package

If you want to use the latest development version from GitHub, add spirit.releaser to your mr.developer source section:

[buildout]
extensions += mr.developer

[sources]
spirit.releaser = git git@github.com:it-spirit/spirit.releaser.git

This creates the zest.releaser executables in your bin-directory. Create a release as you’re used to:

$ ./bin/fullrelease

Installation in a virtualenv

You can also install spirit.releaser in a virtualenv.:

$ pip install spirit.releaser

You can also install the latest version of spirit.releaser directly from GitHub:

$ pip install -e git+git@github.com:it-spirit/spirit.releaser.git#egg=spirit.releaser

Now you can use it like this (when releasing your package):

$ fullrelease

Changelog

0.6.1 (2017-11-03)

  • Set correct folder name before doing zip export.

0.6 (2017-10-31)

  • Add postrelease hook to change ‘theme_version’ param back to development version.

  • Add option ‘diazo_export.theme_name’ to adjust the theme name if this one is different from the package name.

0.5.1 (2017-10-11)

  • Fix return value check.

0.5 (2017-10-11)

  • Add new prerelease hook to update the ‘theme_version’ param.

0.4 (2017-10-03)

  • Save zip file in parent directory.

  • Add option to update the ‘theme_version’ param.

0.3 (2017-10-03)

  • Change directory again after file has been created.

0.2 (2016-12-21)

  • Added console script to only release diazo theme as zip.

0.1 (2015-11-23)

  • Nothing changed yet.

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

spirit.releaser-0.6.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file spirit.releaser-0.6.1.tar.gz.

File metadata

File hashes

Hashes for spirit.releaser-0.6.1.tar.gz
Algorithm Hash digest
SHA256 dbc4d23341ec129a98babd0244c84ac4a4d6a01dea4e6003653780484df453cc
MD5 4f34680a350553d4e3b8866fe2988eba
BLAKE2b-256 1eaa1dcbef11ed02432a84d54633b45c8b5d45d7754fe6199ad076b09e8ed060

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