c2cciutils

raw JSON →
1.7.5 verified Fri May 01 auth: no python

Common utilities for Camptocamp CI, version 1.7.5. Provides tools for CI/CD pipelines including package versioning, Docker image management, and security audits. Released on PyPI with monthly updates, supports Python 3.9+.

pip install c2cciutils
error ModuleNotFoundError: No module named 'c2cciutils'
cause The package is not installed or the virtual environment is not activated.
fix
Run pip install c2cciutils or pip install --upgrade c2cciutils to install it.
error TypeError: get_project_version() missing 1 required positional argument: 'self'
cause Calling version.get_project_version as a method on an uninitialized class instead of a function.
fix
Use from c2cciutils import version and then version.get_project_version() without self.
error FileNotFoundError: [Errno 2] No such file or directory: '.c2cciutils.yaml'
cause Running c2cciutils command without a configuration file.
fix
Create a .c2cciutils.yaml file in the project root or specify an alternative config path.
breaking In version 1.7.5, the dependency on pkg_resources was removed; any code relying on pkg_resources directly must be updated.
fix Replace any usage of pkg_resources with importlib.resources or the recommended alternative.
deprecated Old import paths like from c2cciutils import version_git are deprecated; use the unified version module.
fix Use from c2cciutils import version instead.
gotcha The CLI command c2cciutils requires a configuration file; missing it leads to obscure errors.
fix Ensure a c2cciutils configuration file (e.g., .c2cciutils.yaml) is present in the project root.

Get the current project version using the version utility.

from c2cciutils import version
print(version.get_project_version())