Skip to content

Automated Dependency Updates for 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.

Default config

{
  "managerFilePatterns": [
    "/(^|/)conanfile\\.(txt|py)$/"
  ],
  "datasource": "conan",
  "versioning": "conan"
}

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:

  1. Renovate searches in each repository for any conanfile.txt or conanfile.py file
  2. Renovate extracts existing dependencies from:
    • the [requires] and [build_requires] sections in the conanfile.txt format
    • the requirements() and build_requirements() functions in the conanfile.py format
    • and the python_requires, requires and build_requires variables in the conanfile.py format
  3. Renovate resolves the dependency's version using the Conan v2 API
  4. If Renovate finds an update, Renovate will update conanfile.txt or conanfile.py
  5. Renovate also updates conan.lock file if exists