Skip to main content

Bincrafters Packaging tools for build Conan projects

Project description

[![Build status: Windows](https://ci.appveyor.com/api/projects/status/github/bincrafters/bincrafters-package-tools?svg=true)](https://ci.appveyor.com/project/BinCrafters/bincrafters-package-tools)

[![codecov](https://codecov.io/gh/bincrafters/bincrafters-package-tools/branch/master/graph/badge.svg)](https://codecov.io/gh/bincrafters/bincrafters-package-tools)

[![Pypi Download](https://img.shields.io/badge/download-pypi-blue.svg)](https://pypi.python.org/pypi/bincrafters-package-tools)

# Bincrafters Package Tools

## A modular toolset for [Conan package tools](https://github.com/conan-io/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](examples):

  • How to [build shared library](examples/build_shared_library.py)

  • How to [build header only](examples/build_header_only.py)

#### 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 for MacOS. Otherwise, [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

[MIT](LICENSE.md)

Keywords: conan,C/C++,package,libraries,developer,manager,dependency,tool,c,c++,cpp Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Intended Audience :: Developers Classifier: Topic :: Software Development :: Build Tools Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3

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_package_tools-0.17.0.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file bincrafters_package_tools-0.17.0.tar.gz.

File metadata

  • Download URL: bincrafters_package_tools-0.17.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/36.4.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.1

File hashes

Hashes for bincrafters_package_tools-0.17.0.tar.gz
Algorithm Hash digest
SHA256 4f4e417d986bc52b4a3b26bf38dc8ccc3d7e9153c8876c5d04d588d79162da98
MD5 77d2a856d19f164d49a5f87103a44e82
BLAKE2b-256 4f795be54ffcbc8407e90c547835685ee70ac93d35ae83aea1b9494a08894853

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