Click packages

Click is the code name used to describe a packaging format for Ubuntu mobile applications. This format specifies how individual apps are delivered to mobile devices, how they are packed into distributable format, and how they are installed on a mobile device by a system provided package manager. At a minimum they assume that a system framework exists providing all the necessary infrastructure and dependencies needed in order to install and run such apps.

The click packaging format is completely independent from facilities to do full-system installations or upgrades.

Compatibility

Currently, this package should remain compatible with Python 2.7, 3.2, and 3.3; Ubuntu 12.04 LTS and Ubuntu 13.10.

Dependencies

For Ubuntu 13.10, make sure you have the python2.7 and python3.3 packages installed. Unless you upgraded from a previous version of Ubuntu and haven’t removed it yet, you won’t have Python 3.2 available. Build it from source if necessary, install them say into /usr/local, and make sure it is on your $PATH.

You’ll need gcc in order to build the preload shared library. Assuming you have this, do the following:

$ (cd preload && make)

You’ll need tox (Ubuntu package python-tox) installed in order to run the full test suite. You should be able to just say:

$ tox

to run the full suite. Use tox’s -e option to run the tests against a subset of Python versions. You shouldn’t have to install anything manually into the virtual environments that tox creates, but you might have to if you don’t have all the dependencies installed in your system Pythons.

You’ll need the mock and python-debian libraries. For Ubuntu 13.10, apt-get install the following packages:

* python-mock
* python-debian
* python3-debian

Testing

After all of the above is installed, you can run tox to run the test suite against all supported Python versions. The ./run-tests scripts just does an additional check to make sure you’ve got the preload shared library built.

Documentation

To build the HTML version of the documentation, you’ll need Sphinx (Ubuntu package python-sphinx). Then do:

$ (cd doc && make html)

Contents:

Indices and tables

Table Of Contents

Next topic

“Click” package file format, version 0.4

This Page