Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

icemac.install.addressbook

Scripts to ease the installation and update an existing installation of icemac.addressbook to a new version of the package.

Installation of the scripts

Install the package icemac.install.addressbook using pip:

$ pip install icemac.install.addressbook

This creates two scripts in the bin directory:

  • install-addressbook

  • archive-addressbook

Usage

install-addressbook

Start the script using:

$ bin/install-addressbook [VERSION_NUMBER]

Where VERSION_NUMBER is the number of the version you want to install resp. you want to update to. If you leave it out the newest version is used.

The script executes the following steps:

  1. Download the source distribution of icemac.addressbook to a temporary directory.

  2. Extract the source distribution to the current working directory.

  3. Run the install script. If there is a symlink named current pointing to a previous icemac.addressbook installation it uses its configuration as default answers for the questions in the installation process.

  4. Create or replace the new symlink named current pointing to the new installation.

make-current-addressbook

This script is helpful if you want to switch back to an older installed address book version in case of an error.

Start the script using:

$ bin/make-current-addressbook VERSION_NUMBER

Where VERSION_NUMBER is the number of the version you want to make the current one.

The script executes the following steps:

  1. Create or replace the new symlink named current pointing to the new installation.

archive-addressbook

After installing a new version of the address book you could archive the previous one using this script.

Start the script using:

$ bin/archive-addressbook 4.1

Where 4.1 is the version number of the installation you want to archive.

The script executes the following steps:

  1. Create an archive of the requested icemac.addressbook installation (as installed by install-addressbook) in a directory named archive. (The archive directory is created if it not yet exists.)

  2. Delete the requested icemac.addressbook installation.

change-addressbook-config

If you want change some answers to the questions asked during the installation, you can run this script.

Start the script using:

$ bin/change-addressbook-config

The script executes the following steps:

  1. The configuration questions get re-presented to you with your previously entered values as defaults.

  2. The address book instance has to be restarted afterwards. This can be done automatically by the script or manually.

Hacking

  • Clone the repository:

    $ git clone https://github.com/icemac/icemac.install.addressbook
  • Create a virtualenv, install the installer and run it:

    $ cd icemac.install.addressbook
    $ virtualenv-2.7 .
    $ bin/pip install zc.buildout
    $ bin/buildout -n

Change log

1.5.3 (2020-03-23)

  • Pin dependencies to older versions to keep supporting Python 2.

1.5.2 (2019-10-09)

  • When already using an address book version with an encrypted admin password and then omitting the password when updating to the next version the admin.zcml file from the previous installation is copied. (This was not the case before leading to a broken installation because of a missing admin.zcml.)

1.5.1 (2019-10-04)

  • Add install dependency for zc.lockfile because it cannot be loaded in the buildout environment when zc.buildout is installed via pip.

1.4 (2019-09-26)

  • Remove entries in crontab generated by the previous address book version when updating to a new one.

  • Move whole installation code here from icemac.addressbook supporting its versions >= 9.

  • Add script bin/change-addressbook-config to change configuration without installing a new addressbook version.

  • Hash the admin password in the created admin.zcml and force to change the plain text password during install resp. config update.

1.3.1 (2018-08-04)

  • Use virtualenv instead of bootstrap.py of zc.buildout.

1.3 (2018-08-03)

  • Change license from ZPL to MIT.

1.2.post1 (2017-12-26)

  • Also release as wheel.

1.2 (2017-04-08)

  • install-addressbook now prints a message before starting the download.

  • archive-addressbook now prints a message before starting archiving.

1.1.1 (2017-01-07)

  • Prevent an error in archive-addressbook if the bz2 module is not available.

1.1 (2017-01-07)

  • Add make-current-addressbook script to ease usage of the current symlink in case of an error.

1.0 (2017-01-06)

  • Initial release.

Release files for icemac.install.addressbook 1.5.3

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

Source distribution (sdist)

Source distribution for icemac.install.addressbook 1.5.3
File Size Uploaded
icemac.install.addressbook-1.5.3.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for icemac.install.addressbook 1.5.3
File Interpreter ABI Platform
icemac.install.addressbook-1.5.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 46.3 kB

Release files / icemac.install.addressbook-1.5.3.tar.gz

Download URL icemac.install.addressbook-1.5.3.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6a7ecf24039edaddeb2796e2bb318b9efe1341ed6e930381c5c8f7c8f2c2618e
BLAKE2b-256 checksum
How to use checksums
ed83332e46200c0ef7c1a177e0798d12f65e28b4b229612e329120180d1c2e52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/None requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

Release files / icemac.install.addressbook-1.5.3-py2.py3-none-any.whl

Download URL icemac.install.addressbook-1.5.3-py2.py3-none-any.whl
Size 30.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ba30de3bc8ea7c9492fb6a9b7f08a10dc078111abc047238f7285788e2e6e9a6
BLAKE2b-256 checksum
How to use checksums
f7a72c21828d3986af543dbaba872b20fcbe5b66085f53efee0ed652ffe61b0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/None requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7
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