Skip to main content

Creates Python Wheel Archives.

Project description

This tool creates Cloudify plugin packages (Currently, only tested on Linux).

Cloudify Plugins are packaged as sets of Python Wheels in tar.gz files.


cfy-pp create --help

Usage: cfy-pp create [OPTIONS]

  Creates a plugin package (tar.gz)

  Example sources:
  - ~/repos/cloudify-script-plugin
  - cloudify-script-plugin==1.2.1

  - If source is URL, download and extract it and get module name and version
  - If source is a local path, get module name and version from
  - If source is module_name==module_version, use them as name and

  -s, --source TEXT             Source URL, Path or Module name.  [required]
  --pre                         Whether to pack a prerelease of the plugin.
  -r, --requirements-file TEXT  Whether to also pack wheels from a
                                requirements file.
  -f, --force                   Force overwriting existing output file.
  --keep-wheels                 Force overwriting existing output file.
  -o, --output-directory TEXT   Output directory for the tar file.
  -v, --verbose
  --help                        Show this message and exit.


# create a plugin package by retrieving the source from PyPI and keep the downloaded wheels (kept under <cwd>/plugin)
cfy-pp create -s cloudify-script-plugin==1.2 --keep-wheels
# create a plugin package by retrieving the source from a URL.
cfy-pp create -s
# create a plugin package by retrieving the source from a local path and output the tar.gz file to /tmp/<PLUGIN>.tar.gz (defaults to <cwd>/<PLUGIN>.tar.gz)
cfy-pp create -s ~/repos/cloudify-script-plugin/ -o /tmp/

The output package of all three commands should be cloudify_script_plugin-1.2-py27-none-any.tar.gz if running under Python 2.7.x.

Naming and Versioning

Source: PyPI

When providing a PyPI source, it must be supplied as PLUGIN_NAME==PLUGIN_VERSION. The packager then applies the correct name and version to the package according to the two parameters.

Source: Else

For local path and URL sources, the name and version are automatically extracted from the file.

NOTE: This means that when supplying a local path, you must supply a path to the root of where your file resides.

Metadata File and Wheels

A Metadata file is generated for the plugin and looks somewhat like this:

    "archive_name": "cloudify_script_plugin-1.2-py27-none-any.tar.gz",
    "platform": "any",
    "plugin_name": "cloudify-script-plugin",
    "plugin_source": "cloudify-script-plugin==1.2",
    "plugin_version": "1.2",
    "wheels": [

The metadata file is used by our plugin installer to identify which plugin to install under certain conditions. PROVIDE MORE INFORMATION HERE ABOUT THE PLUGIN INSTALLER (AS A LINK, PROBABLY!)

  • The wheels to be installed as a part of the plugin reside in the tar.gz file under ‘wheels/*.whl’.

  • The Metadata file resides in the tar.gz file under ‘plugin.json’

Package naming convention and Platform

The tar.gz archive is named according to the Wheel naming convention described in PEP0427 aside from two fields:

Example: cloudify_fabric_plugin-1.2.1-py27-none-linux_x86_64.tar.gz

  • {python tag}: The Python version is set by the Python running the packaging process. That means that while a plugin can run on both py27 and py33 (for example), since the packaging process took place using Python 2.7, only py27 will be appended to the name. Note that we will be providing a way for the user to provide the supported Python versions explicitly.

  • {platform tag}: The platform (e.g. linux_x86_64, win32) is set for a specific wheel. To know which platform the plugin can be installed on, all wheels are checked. If a specific wheel has a platform property other than any, that platform will be used as the platform of the package. Of course, we assume that there can’t be wheels downloaded or created on a specific machine platform that belongs to two different platforms.

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

wheelr-0.1.tar.gz (22.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page