charmcraftlocal
Pack charms with local Python package dependencies
Decision gist · record as of 2026-08-14
Yes, if you are building Juju charms with Poetry in a monorepo or multi-charm structure. The tool directly solves a real constraint of charmcraft and is actively maintained. However, verify the license status before use in proprietary contexts, and confirm your charm project uses Poetry—it is not a general-purpose charm builder.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.10.
- Designed for charms managed with Poetry; non-Poetry charms are not currently supported.
- Low friction install via pipx or uv.
License · maintenance · safety
(unclear) — License status is unclear—no SPDX identifier or raw license text is available. Verify the actual license before using in proprietary or restricted contexts.
last release 2026-06-10 (65 days) · last repo commit 2026-06-10
0 known vulnerabilities (OSV.dev, 2026-08-14) · 84,197 downloads/mo, #14,019 on PyPI
Alternatives
Verify before relying
pipx install charmcraftlocal
charmcraftlocal pack
# or within charmcraft.yaml:
charmcraftlocal update-lock -v- Whether the package works with charm projects outside monorepo structures or single-charm repositories.
- Performance characteristics when handling large numbers of local dependencies or deeply nested package structures.
- Compatibility with Poetry versions beyond what the description implies.
What it is and what it does
charmcraftlocal is a build-time helper for Juju charm projects that use Poetry to manage Python dependencies. It solves the problem that charmcraft can only access files in the charm's own directory during packing, preventing it from directly including local Python packages from sibling directories in a monorepo. The tool searches a charm's pyproject.toml for local dependencies, copies them into the charm directory, and updates Poetry's lock files so the build succeeds.
It provides two main commands: `ccl pack` copies local packages and calls charmcraft, while `ccl update-lock` updates Poetry metadata during the build process. For projects with multiple charms sharing code, it also offers `ccl mirror` to create separate git repositories that meet standard tooling expectations, using git-filter-repo to preserve history while keeping pyproject.toml and poetry.lock in sync.
Use it for
- Build a Juju charm in a monorepo where multiple charms share a common Python library in a sibling directory.
- Automate charm packing in CI/CD pipelines that expect charmcraft pack to work without manual dependency copying.
- Create mirror repositories for individual charms that maintain commit history while isolating local dependencies.
- Develop charms with Poetry-managed dependencies that reference local packages via path dependencies.
- Integrate charm builds into existing tooling that expects one charm per git repository at the root.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building Juju charms with Poetry in a monorepo or multi-charm structure.
The tool directly solves a real constraint of charmcraft and is actively maintained. However, verify the license status before use in proprietary contexts, and confirm your charm project uses Poetry—it is not a general-purpose charm builder.
Install
charmcraftlocal on PyPI
Before you install
Low friction install via pipx or uv. Active maintenance with recent releases. Six runtime dependencies (pyyaml, requests, rich, tomli, typer, charm-refresh-build-version) are all standard utilities with broad ecosystem support.
Requires Python >=3.10. Designed for charms managed with Poetry; non-Poetry charms are not currently supported.
License in practice
License status is unclear—no SPDX identifier or raw license text is available. Verify the actual license before using in proprietary or restricted contexts.
Quickstart
pipx install charmcraftlocal
charmcraftlocal pack
# or within charmcraft.yaml:
charmcraftlocal update-lock -v
Verify before relying
- Whether the package works with charm projects outside monorepo structures or single-charm repositories.
- Performance characteristics when handling large numbers of local dependencies or deeply nested package structures.
- Compatibility with Poetry versions beyond what the description implies.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagescharm-refresh-build-versionpyyamlrequestsrichtomlityper |
| Maintenance | Actively maintained 65 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,197 / month, #14,019 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: charmcraftlocal-0.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “charm packaging with local dependencies”
- charmcraftlocalPacks Juju charms with local Python package dependencies by copying…
- charmlibs-pathopsProvides a pathlib-like interface for reading and writing files in…
- pytest-operatorA pytest plugin that provides fixtures and helpers for writing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also charm-refresh-build-version · charmcraftcache · data-platform-helpers · cosl · poetry-multiproject-plugin · ops · charmlibs-pathops · poetry · poetry-core · juju