Skip to main content

An updater for OpenCPI Projects

Project description

ocpiupdate - An updater for OpenCPI projects

pypi release gitlab pre-commit codecov

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.5.0` tag
pip install git+https://gitlab.com/dawalters/ocpiupdate@v0.5.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 built containers from the Gitlab Container Registry. This happens automatically when running a registry image without a local copy.

See containers/scripts/ocpiupdate.sh for a script that allows running the ocpiupdate:latest container over more than one project.

To download and use this script:

# If you want to keep a local copy of the script
curl -o ocpiupdate.sh https://gitlab.com/dawalters/ocpiupdate/-/raw/develop/containers/scripts/ocpiupdate.sh
source ocpiupdate.sh

# If you don't want to keep a local copy of the script
source <(curl -s https://gitlab.com/dawalters/ocpiupdate/-/raw/develop/containers/scripts/ocpiupdate.sh)

You can then use the terminal command ocpiupdate in exactly the same way as the python script.

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.5.0.tar.gz (23.7 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.5.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocpiupdate-0.5.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for ocpiupdate-0.5.0.tar.gz
Algorithm Hash digest
SHA256 192830a0b69b24e8fb60ff92740cd9390784188455e0f5db9bb0947e35bfe130
MD5 ac30d47c8d24077cbf8f7c7d6833ed72
BLAKE2b-256 d8865cdd623bd8f7b171d6f8f840e96619be0db992b05806ebd2c699a16733ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocpiupdate-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for ocpiupdate-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f75b30cf43251974b23a3fe82aaac237b43ad5b253269f433f0ee5ec457554f2
MD5 3f08f7250df7bf4611ddc38374dbce63
BLAKE2b-256 8492f3d8b11c5a92a5f58694f13ecc3e9db8f6b2748d2dcb16af56a99124cf79

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