Bincrafters Packaging tools for build Conan projects
Project description
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
HOW TO USE
We listed two common examples:
- How to build shared library
- How to build header only
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://api.bintray.com/conan/bincrafters/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
REQUIREMENTS and DEVELOPMENT
To develop or run Bincrafters package tools, Conan package tools will be required However, you could solve by pip
pip install -r bincrafters/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.
Only one job (python 2.7) will upload, the second one will be skipped.
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_package_tools-0.23.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53ebdfe5577faa0f241dec80e95e390042fa87804a0ae1b93c516056d4f73040 |
|
MD5 | 7d7bdc88325ba50f1ff43c317884d4e9 |
|
BLAKE2b-256 | dd523ecb9254d9903563305b29315d92a9e28407f5ac429debf7dd27f8015e76 |