Registry / devops / colcon-mixin

colcon-mixin

JSON →
library0.2.3pypypi✓ verified 85d ago

Extension for colcon (the collective build tool) to read and apply CLI mixins from YAML files. Version 0.2.3. Released sporadically; no active development observed since 2023.

pip install colcon-mixin
INSTALL
IMPORT
SIG · COLCON-MIXIN
C
colcon-mixin
devopspythonv0.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

colcon_mixin
import colcon_mixin
from colcon_mixin import ...
colcon-mixin is a plugin and should be imported as a module; it registers itself as a colcon extension upon import. Do not attempt to import specific functions.

Importing the module registers the mixin functionality; invoke via colcon CLI.

import colcon_mixin # Then use colcon with --mixin argument, e.g.: # colcon build --mixin my-mixin
Debug
Known issues
deprecatedcolcon-mixin may be affected by the transition to colcon-core 2.x. Check compatibility with your colcon version.
fix
Ensure colcon-mixin version matches your colcon-core version.
affects: >=0.2.0
gotchaThe mixin file path must be specified via --mixin-file or environment variable; otherwise colcon looks for a default path which may not exist.
fix
Always pass --mixin-file /path/to/mixins.yaml explicitly.
affects: *
breakingcolcon-mixin 0.2.3 is not compatible with Python 3.12+ due to deprecated 'distutils' usage.
fix
Use Python 3.11 or earlier, or wait for a new release.
affects: 0.2.3 with Python >=3.12
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'colcon_mixin'
colcon-mixin is not installed in the current Python environment.
fix
Run 'pip install colcon-mixin'.
ValueError: No mixin file found at '/home/user/.colcon/defaults/mixin.yaml'
colcon-mixin looks for a default mixin file path that doesn't exist.
fix
Create the mixin file or specify a custom path with --mixin-file.
AttributeError: module 'colcon_mixin' has no attribute '__version__'
colcon-mixin does not export a __version__ attribute.
fix
Use 'importlib.metadata.version("colcon-mixin")' to get version.
Upgrade
Version history
0.2.3latest on PyPI · released Feb 2, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
colcon-mixin — pip install colcon-mixin · libregistry