项目作者: bincrafters

项目描述 :
Script to check and update Conan projects following Conan conventions, hooks and rules
高级语言: Python
项目地址: git://github.com/bincrafters/bincrafters-conventions.git
创建时间: 2018-10-13T01:38:22Z
项目社区:https://github.com/bincrafters/bincrafters-conventions

开源协议:MIT License

下载


Build status
Codecov
Pypi Download

Bincrafters Conventions

A Script to update Conan projects following Conan conventions

This project contains scripts to update recipes, CI files, to
update Conan conventions in general and to perform some linting.

INSTALL

You can install bincrafters-conventions via pip like this:

  1. $ pip install bincrafters_conventions

Minimum Python version: 3.8

RUN

💡 Bincrafters Conventions is a command line tool.

Execute bincrafters-conventions --help to see all options.

bincrafters-conventions has also the alias bcon for convince.

EXAMPLES

To update ALL Conan projects on GitHub for https://github.com/bincrafters

  1. $ bcon --remote=bincrafters

To update ONLY one project on GitHub https://github.com/bincrafters/conan-conversion

  1. $ bcon --remote=bincrafters/conan-double-conversion

To AVOID to execute push command after to update

  1. $ bcon --remote=bincrafters/conan-libusb --dry-run

To filter PROJECTS by pattern

  1. $ bcon --remote=bincrafters --project-pattern bincrafters/conan-*

To filter BRANCHES by pattern

  1. $ bcon --remote=bincrafters --branch-pattern stable/*

or

  1. $ bcon --remote=bincrafters/conan-libzip --branch-pattern stable/*

To update and check LOCAL everything

  1. $ bcon

To check LOCAL everything

  1. $ bcon --check

To apply Conan conventions in a local file:

  1. $ bcon --conanfile=conanfile.py

To update AppVeyor file:

  1. $ bcon --appveryorfile=appveyor.yml

Testing and Development

If you want to install bincrafters-conventions via a local git clone

  1. pip install --user -U .

To install extra packages required to test

  1. pip install .[test]

To run all unit test + code coverage, execute:

  1. cd tests
  2. pytest -v --cov=bincrafters_conventions

LICENSE

MIT