Skip to main content

A packaging utility for creating packages of files for distribution based on a YAML manifest.

Project description

pipeline status coverage report

PyPI version DOI 0.6.0

A tool for packaging a set of files for distribution using a YAML manifest definition from the packageManifest project.

1 Main Features

  • Simple default operation

  • zip or tar-gzip package generation (or both)

  • Specify project path to build package from

  • Append manifest files to an existing tar or zip package

2 Installation

The simplest way to acquire distributionPackage is using pip.

pip install distributionPackage

It’s highly recommended that you install the package into a Python virtual environment.

3 Getting Started

Define a package manifest in a YAML file. The default name expected by distributionPackage is manifest.yml. The example below constructs a simple manifest for a hypothetical C++ project.

- include:
    files: [ 'README.md', 'LICENSE', 'VERSION' ]
- global-include:
    files: [ '*.h', '*.cpp' ]
- prune:
    directory: 'scripts'

Assuming that you have installed distributionPackage and that the makePackage command is in your path,

makePackage

By default makePackage will acquire the manifest definitions from ./manifest.yml, output a file distribution-out.tar.gz in the current directory and assume that the current directory is the root directory of the project to be packaged (for the basis of constructing the package file names from the manifest).

Multiple manifest files may also be specified using the --manifests argument. The YAML data from the files are concatenated in the same order as the file names into a single manifest.

Using the --help option will describe the various options available.

> makePackage --help

usage: makePackage [-h] [-a] [-m [MANIFEST_PATH [MANIFEST_PATH ...]]]
                   [-o OUTPUT] [-p PACKAGE] [-r PROJECTROOT] [-n] [-z]

Build a distribution package from a manifest

optional arguments:
  -h, --help            show this help message and exit
  -a, --append          Append to an existing distribution package, if it
                        exists. Created otherwise. (default disabled)
  -m [MANIFEST_PATH [MANIFEST_PATH ...]], --manifests [MANIFEST_PATH [MANIFEST_PATH ...]]
                        Manifest file(s) to use to build the package. (default
                        manifest.yml)
  -o OUTPUT, --output OUTPUT
                        Directory to place the generated distribution files.
                        Created if not present. (default ./)
  -p PACKAGE, --package PACKAGE
                        Filename stub of output package, not including suffix
                        or version info. (default distribution-out)
  -r PROJECTROOT, --project-root PROJECTROOT
                        Project root to package files from. (default ./)
  -n, --no-tar          Disable tar, gzip output distribution. (default
                        enabled)
  -z, --zip             Enable zip output distribution. (default disabled)

4 DOI Archive

0.3.0

DOI 0.3.0

0.4.0

DOI 0.4.0

0.5.0

DOI 0.5.0

0.6.0

DOI 0.6.0

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

distributionPackage-0.8.0.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

distributionPackage-0.8.0-py3-none-any.whl (124.6 kB view details)

Uploaded Python 3

File details

Details for the file distributionPackage-0.8.0.tar.gz.

File metadata

  • Download URL: distributionPackage-0.8.0.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.18.4

File hashes

Hashes for distributionPackage-0.8.0.tar.gz
Algorithm Hash digest
SHA256 f499f5c01a397225c2282f706b40840857c6676da1460a936e0c84f4245e314e
MD5 0d2d608a18b1ffaceaf1fe253090136b
BLAKE2b-256 0f24156a8ddc3397cff0618e3427437da713973db6520d91ad58c13de271845e

See more details on using hashes here.

File details

Details for the file distributionPackage-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for distributionPackage-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3652fab9b10c6a02c8b1ee037a8972f76dbf936c81bcd190861de1bbe7c0b983
MD5 52135dd99bc52b0ec877bd25b3b7bc50
BLAKE2b-256 5b6a48c56947f81623787c8631a5d64d8b82671e472a383a1d48ef1481445338

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