Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Upload coverage for C extensions to

Project Description


Get coverage data on Python C extensions, on both the python side and the C side of the api. The package combines the output from coverage-lcov and coveralls to upload your coverage data to

This only supports travis-ci.


Setup coveralls, and make sure that it’s working with for the python portion. Then, to add c coverage, add a few lines to your .travis.yml:

  - 2.7

    # install lcov
  - "sudo apt-get -qq install lcov"
    # install test runners, coveralls, and coveralls-merge
  - "pip install coveralls nose coveralls-merge"
    # install the lcov parser
  - "gem install coveralls-lcov"

  - coverage erase
  - python clean
  # build, using coverage flag
  - CFLAGS="-coverage" python build_ext --inplace

  # run your tests, with coverage as normal
  - coverage run -m nose Tests/test_*.py

  # combine and generate json
  - lcov --capture --directory . -b . --output-file
  - coveralls-lcov -v -n > coverage.c.json

  # upload
  - coveralls-merge coverage.c.json


0.0.2 (2014-07-30)

  • Requests fix
  • Doc Changes

0.0.1 (2014-07-30)

  • Initial upload
Release History

Release History

This version
History Node


History Node


Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting