lukasberbuer / conan-check-updates

Check for updates of your conanfile.txt/conanfile.py requirements
MIT License
2 stars 2 forks source link
conan package package-manager requirements update

conan-check-updates

CI Coverage Status License: MIT PyPI PyPI - Python Version Code style: black Ruff

Check for updates of your conanfile.txt / conanfile.py requirements.

Screenshot

This application is heavily inspired by npm-check-updates.

Installation

Install the latest version from PyPI:

pip install -U conan-check-updates

Usage

usage: conan-check-updates [--cwd CWD] [--target {major,minor,patch}]
                           [--timeout TIMEOUT] [-u] [-V] [-h]
                           [filter ...]

Check for updates of your conanfile.txt/conanfile.py requirements.

positional arguments:
  filter                Include only package names matching any of the given
                        strings or patterns. Wildcards (*, ?) are allowed.
                        Patterns can be inverted with a prepended !, e.g.
                        !boost*. (default: None)

options:
  --cwd CWD             Path to a folder containing a recipe or to a recipe
                        file directly (conanfile.py or conanfile.txt).
                        (default: .)
  --target {major,minor,patch}
                        Limit update level: major, minor or patch. (default:
                        major)
  --timeout TIMEOUT     Timeout for `conan search` in seconds. (default: 30)
  -u, --upgrade         Overwrite conanfile with upgraded versions. (default:
                        False)
  -V, --version         Show the version and exit.
  -h, --help            Show this message and exit.

Contributing

Contributions are happily accepted. Just create an issue or make a pull-request.

Development setup

# Clone repository
git clone https://github.com/lukasberbuer/conan-check-updates.git
cd conan-check-updates

# Install package and development tools
pip install -e .[dev]

# Install the git hook scripts
pre-commit install

# Run checks & tests with tox
tox