canonical / canonical/charmlibs
Test across different dependency versions
- Dominant language
- Python
- Stars
- 5
- Forks
- 28
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 24
Description
Libraries don't (or shouldn't) control the exact version of the dependencies they run with. Instead this is determined by the application's (charm's) lockfile at packing time. We should adjust the testing strategy and treatment of lockfiles in this repository to account for this. For example, we could use the different [uv lock --resolution](https://docs.astral.sh/uv/reference/cli/#uv-run--resolution) options when running unit tests.
Contributor guide
Research direction
Start by reviewing the repository's unit-test commands and how dependency lockfiles are used during testing. Investigate uv lock --resolution and determine how tests can run against different dependency resolutions without treating the library's lockfile as authoritative. Done means the testing strategy covers the supported dependency versions and lockfile handling matches application packing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100