Skip to main content

An updater for OpenCPI Projects

Project description

ocpiupdate - An updater for OpenCPI projects

ocpiupdate updates OpenCPI Projects to use style associated with newer versions of OpenCPI.

For example:

  • Using <worker>-<model>.xml for the Worker Description files, instead of <worker>.xml.
  • Using <component>.comp/<component>-comp.xml for Component Specification files instead of specs/<component>[-_]spec.xml.
  • Using xml files instead of Makefiles.

Dependencies

This library requires Python 3.11 or newer. This means it doesn't support the default system python3 install on Ubuntu 20.04 or Ubuntu 22.04.

If you use a system with Python 3.10 or older, you need to either:

  • Install a newer python3 just for this library.
    • I'd recommend using a tool like uv.
  • Download and run the containerised version.

Installation

pip

You can install the latest release from PyPi:

pip install ocpiupdate

Or, you can install this repository directly:

# Installs `develop` branch
pip install git+https://gitlab.com/dawalters/ocpiupdate

# Installs `v0.4.0` branch
pip install git+https://gitlab.com/dawalters/ocpiupdate@v0.4.0

docker or podman

The containers directory contains a variety of containers, relying only on a local installation of docker or podman.

You can download a built container from the Gitlab Container Registry

Usage example:

project_directory=/path/to/project/root

container_name=ocpiupdate:v0.4.0

additional_arguments="--dry-run --verbose"

# for `podman`, just replace `docker`
docker run \
    --volume "$project_directory":/tmp \
    --workdir /tmp \
    "$container_name" \
    "$additional_arguments"

See containers/scripts/ocpiupdate.sh for a more complex example.

Source tarball

You can download source releases from the Gitlab Releases page.

Configuration

Until documentation becomes available, you can follow the release posts available on the OpenCPI forum.

This includes examples of usage, and discussion of how to write configuration files.

Disclaimer

This repository has no affiliation with OpenCPI.

The maintainer doesn't maintain OpenCPI.

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

ocpiupdate-0.4.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocpiupdate-0.4.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file ocpiupdate-0.4.0.tar.gz.

File metadata

  • Download URL: ocpiupdate-0.4.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for ocpiupdate-0.4.0.tar.gz
Algorithm Hash digest
SHA256 27966eacc3c7284037f4b05710d81a9d97b6df8848956a01975d951235b7c5d8
MD5 e43bc3f6eec6b21d39e41c40ef44847f
BLAKE2b-256 85d8f0763c253c70847ea8a466ec04adefbd13e36747cb726bf75363895d5b0e

See more details on using hashes here.

File details

Details for the file ocpiupdate-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: ocpiupdate-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for ocpiupdate-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe7c3c068fe47c6bf2a0e26f159eb3c07b675f6b786746be8c7a21d80fa1b7dc
MD5 c5c66aded3b8bab73b0558f31290c3ca
BLAKE2b-256 a1c4088a94a8ce275c0c2ab7d99e42f53a5bb62e258f44fe362c2098e45e1516

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page