Skip to main content

Craft parts tooling

Project description

# Craft Parts

[![Documentation Status](https://readthedocs.com/projects/canonical-craft-parts/badge/?version=latest)](https://canonical-craft-parts.readthedocs-hosted.com/en/latest/?badge=latest)

Craft-parts provides a mechanism to obtain data from different sources, process it in various ways, and prepare a filesystem subtree suitable for deployment. The components used in its project specification are called parts, which can be independently downloaded, built and installed, and also depend on each other in order to assemble the subtree containing the final artifacts.

# License

Free software: GNU Lesser General Public License v3

# Documentation

https://canonical-craft-parts.readthedocs-hosted.com/en/latest/

# Contributing

A Makefile is provided for easy interaction with the project. To see all available options run:

` make help `

## Development Environment

In order to develop any apt related items, the python-apt package is needed. The apt extra will require this package in general.

Apt package prerequisites for this development environment on an Ubuntu system can be installed with:

`bash sudo apt install libapt-pkg-dev intltool fuse-overlayfs `

On a Debian or Ubuntu system, the appropriate package can be installed by running

`bash apt source python-apt pip install ./python-apt_* `

or by downloading and installing the appropriate source tarball. On Ubuntu these are:

## Running tests

To run all tests in the suite run:

` make tests `

## Adding new requirements

If a new dependency is added to the project run:

` make freeze-requirements `

## Verifying documentation changes

To locally verify documentation changes run:

` make docs `

After running, newly generated documentation shall be available at ./docs/_build/html/.

## Committing code

Please follow these guidelines when committing code for this project:

  • Use a topic with a colon to start the subject

  • Separate subject from body with a blank line

  • Limit the subject line to 50 characters

  • Do not capitalize the subject line

  • Do not end the subject line with a period

  • Use the imperative mood in the subject line

  • Wrap the body at 72 characters

  • Use the body to explain what and why (instead of how)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

craft_parts-1.30.0.tar.gz (326.5 kB view details)

Uploaded Source

Built Distribution

craft_parts-1.30.0-py3-none-any.whl (410.7 kB view details)

Uploaded Python 3

File details

Details for the file craft_parts-1.30.0.tar.gz.

File metadata

  • Download URL: craft_parts-1.30.0.tar.gz
  • Upload date:
  • Size: 326.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for craft_parts-1.30.0.tar.gz
Algorithm Hash digest
SHA256 0370a86618d608f6ca41350bf22195dd26891c75a434d3ffeae607214cf1f867
MD5 943106812b1ad9023b1eeb4cb0cc5fa1
BLAKE2b-256 61a9ba88b7e8a35c53ce7bc47317d69a8d733c91cdb41781c61784648b357bc4

See more details on using hashes here.

File details

Details for the file craft_parts-1.30.0-py3-none-any.whl.

File metadata

  • Download URL: craft_parts-1.30.0-py3-none-any.whl
  • Upload date:
  • Size: 410.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for craft_parts-1.30.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f7c0a4e38fdc9601bb1942f6dd10ad89261ee584a1ed65d35759b6f88ab9119
MD5 9c678003f443c45f8b188672f107811e
BLAKE2b-256 08959dd3deb095e82a0d6cadb440fb389719b12eb1426c246258944731a224b8

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