Bincrafters script to apply Conan conventions and update CI jobs
Project description
Bincrafters Conventions
A Script to update Conan projects following Conan conventions
This project contains scripts to add new compiler versions in Travis and AppVeyor files, update Conan conventions in general and performing some linting.
Motivation
INSTALL
To install by pip is just one step
Local
If you want to install by local copy
pip install .
Remote
Or if you want to download our pip package
pip install bincrafters_conventions
RUN
To update ALL Conan projects on GitHub https://github.com/bincrafters
$ bincrafters_conventions --remote=bincrafters
To update ONLY one project on GitHub https://github.com/bincrafters/conan-conversion
$ bincrafters_conventions --remote=bincrafters/conan-double-conversion
To AVOID to execute push command after to update
$ bincrafters_conventions --remote=bincrafters/conan-libusb --dry-run
To filter PROJECTS by pattern
$ bincrafters_conventions --remote=bincrafters --project-pattern bincrafters/conan-*
To filter BRANCHES by pattern
$ bincrafters_conventions --remote=bincrafters --branch-pattern stable/*
or
$ bincrafters_conventions --remote=bincrafters/conan-libzip --branch-pattern stable/*
To update and check LOCAL everything
$ bincrafters_conventions
To check LOCAL everything
$ bincrafters_conventions --check
To update a LOCAL file
$ bincrafters_conventions --travisfile=.travis.yml
To apply Conan conventions in a local file:
$ bincrafters_conventions --conanfile=conanfile.py
To update AppVeyor file:
$ bincrafters_conventions --appveryorfile=appveyor.yml
Testing and Development
To install extra packages required to test
pip install .[test]
TESTING
To run all unit test + code coverage, just execute:
pip install -r bincrafters_conventions/requirements_test.txt
cd tests
pytest -v --cov=bincrafters_conventions
REQUIREMENTS and DEVELOPMENT
To develop or run conan clang update
pip install -r bincrafters_conventions/requirements.txt
UPLOAD
There are two ways to upload this project.
Travis CI
After to create a new tag, the package will be uploaded automatically to PyPi.
Both username and password (encrypted) are in Travis file.
Command line
To upload this package on PyPi (legacy mode):
pip install twine
python setup.py sdist
twine upload dist/*
LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for bincrafters_conventions-0.14.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df4eab79d47c76a630b152744d604b84f52984b176a39b2beaffd194215bc6b9 |
|
MD5 | 15c907f0486dffcd9d5053201a2462b3 |
|
BLAKE2b-256 | 008f88dfea8357a494568d4b70bac4e39e6c62a103fa71f8aa9ac51197ac7796 |