/bincrafters-package-tools

A modular toolset for Conan package tools

Primary LanguagePythonMIT LicenseMIT

Build status Codecov Pypi Download

Bincrafters Package Tools

A modular toolset for Conan package tools

This project contains files used by Conan Package Tools for all kinds of bincrafters builds.

These scripts are used during build process to allow for rapid testing and prototyping at this time.

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_package_tools

ENVIRONMENT

All variables supported by Conan package tools, are treated by Bincrafters package tools as well. To solve the upload, some variables are customized by default:

CONAN_UPLOAD: https://bincrafters.jfrog.io/artifactory/api/conan/public-conan CONAN_REFERENCE: Fields name and version from conanfile.py
CONAN_USERNAME: Get from CI env vars. Otherwise, use bincrafters
CONAN_VERSION: Get from CI env vars.
CONAN_VERSION: Field version from conanfile.py
CONAN_UPLOAD_ONLY_WHEN_STABLE: True for default template. False for Boost builds.
CONAN_STABLE_BRANCH_PATTERN: stable/*
CONAN_ARCHS: Only x86_64 per default. To build 32-bit and 64-bit use e.g. [x86_64, x86]

BINTRAY_REPOSITORY: Bintray repository name. This variable replaces "public-conan" for CONAN_UPLOAD.

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/requirements_test.txt
cd tests
pytest -v --cov=bincrafters

LICENSE

MIT