Conan
Categories: c
Renovate supports updating Conan dependencies.
File Matching¶
By default, Renovate will check any files matching the following regular expression: /(^|/)conanfile\.(txt|py)$/.
For details on how to extend a manager's managerFilePatterns value, please follow this link.
Supported datasources¶
This manager supports extracting the following datasources: conan.
Dependency types¶
This manager extracts the following depType values:
depType |
Description |
|---|---|
build_requires |
A build-time dependency declared in [build_requires] or build_requirements() |
python_requires |
A Python-based Conan recipe dependency declared via python_requires |
requires |
A runtime dependency declared in [requires] or requirements() |
Default config¶
{
"managerFilePatterns": [
"/(^|/)conanfile\\.(txt|py)$/"
],
"datasource": "conan",
"versioning": "conan"
}
Lock File Maintenance¶
This manager supports lockFileMaintenance for the following file(s):
conan.lock
Lock file maintenance is delegated to the underlying package manager, which Renovate runs as an external command.
Additional Information¶
Renovate can upgrade dependencies in conanfile.txt or conanfile.py files and also updates conan.lock files too if found.
How it works:
- Renovate searches in each repository for any
conanfile.txtorconanfile.pyfile - Renovate extracts existing dependencies from:
- the
[requires]and[build_requires]sections in theconanfile.txtformat - the
requirements()andbuild_requirements()functions in theconanfile.pyformat - and the
python_requires,requiresandbuild_requiresvariables in theconanfile.pyformat
- the
- Renovate resolves the dependency's version using the Conan v2 API
- If Renovate finds an update, Renovate will update
conanfile.txtorconanfile.py - Renovate also updates
conan.lockfile if exists