Skip to main content

Bincrafters script to apply Conan conventions and update CI jobs

Project description

Build Status: Linux and macOS Build status: Windows codecov Pypi Download

Bincrafters Conventions

A Script to update Conan projects following Conan conventions

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

INSTALL

To install by pip is just one step

Local

If you want to install via a local git clone

pip install .
Remote

Or if you want to install a release version

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 .[test]
cd tests
pytest -v --cov=bincrafters_conventions

REQUIREMENTS and DEVELOPMENT

To develop or run bincrafters-conventions:

pip install --user -U .

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bincrafters_conventions-0.22.0.tar.gz (27.2 kB view details)

Uploaded Source

File details

Details for the file bincrafters_conventions-0.22.0.tar.gz.

File metadata

  • Download URL: bincrafters_conventions-0.22.0.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for bincrafters_conventions-0.22.0.tar.gz
Algorithm Hash digest
SHA256 5d49351f6a9e9541e0a32636d798694184dcb3677ddd21a34f315731dd2cf8d3
MD5 a0ed5e7445d1fd7d02c2ea38dcef720e
BLAKE2b-256 379705a278611b432d9da7ca43caf855d32aaf89b20beb77edf8e66248c92fe8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page