Merge pull request #3 from sprockets/fix-coverage

Fix coverage
This commit is contained in:
dave-shawley 2015-05-12 14:34:18 -04:00
commit 3c589e91ad
6 changed files with 48 additions and 52 deletions

View file

@ -1,2 +1,8 @@
[run] [run]
source=sprockets.clients.cassandra branch = True
source=sprockets/clients/cassandra
[report]
exclude_lines =
pragma: no cover
def __repr__
ignore_errors = True

View file

@ -1,23 +1,14 @@
language: python language: python
python: python:
- 2.7 - 2.7
- pypy
- 3.3 - 3.3
- 3.4 - 3.4
before_install:
- pip install codecov
install: install:
- pip install -r requirements.txt -r test-requirements.txt - pip install -r requirements.txt -r test-requirements.txt
script: nosetests script: nosetests
after_success: after_success:
- coveralls - codecov
deploy:
provider: pypi
distributions: "sdist bdist_wheel"
user: johnb
password:
secure: "Q0XIvK1R4kv2uFoUDOARQ1swgcnWqlE0jO20Urc0RsuTejY4/uNgUxvp3wfnd+NKARHwrUQFYHGzI5ueVcppQzGzZArr/o3DB9Vh7OURBtbqrSReRsz9QXmV3pDAbSq3p1QbhCryZeEOU0V5DqlnYfVuiM27WWo+V8gg20qn5OY="
on:
python: 2.7
tags: true
all_branches: true
services: services:
- cassandra - cassandra

View file

@ -1,48 +1,47 @@
sprockets.clients.cassandra sprockets.clients.cassandra
=========================== ===========================
Provides base functionality for asynchronously accessing/modifying
data in a Cassandra cluster from within Tornado.
.. image:: https://coveralls.io/repos/aweber/sprockets.clients.cassandra/badge.png Althought the underlying library supports several connection options,
:target: https://coveralls.io/r/aweber/sprockets.clients.cassandra this module currently only allows the hostname to be specified, and
that via an environment variable called CASSANDRA_URI as specified
in the docs.
.. image:: https://pypip.in/download/sprockets.clients.cassandra/badge.svg |Version| |Downloads| |Status| |Coverage|
:target: https://pypi.python.org/pypi/sprockets.clients.cassandra/
.. image:: https://pypip.in/license/sprockets.clients.cassandra/badge.svg Documentation
:target: https://pypi.python.org/pypi/sprockets.clients.cassandra/ -------------
https://sprocketsclientcassandra.readthedocs.org
.. image:: https://readthedocs.org/projects/sprockets.clients.cassandra/badge/?version=latest Contributing
:target: http://sprockets.clients.cassandra.readthedocs.org/en/latest/ ------------
This project follows the standard fork and pull request model of development.
If you want to contribute changes, then fork the project and code
away. To set up the environment:
----- * virtualenv env
* source env/bin/activate
* pip install -qr dev-requirements.txt
.. important:: To test across supported platforms:
* tox
Please send email to api@aweber.com and them them to update this README! To build the docs (in *build/sphinx/html*):
* ./setup.py build_sphinx
Quickstart Development Guide Version History
---------------------------- ---------------
See https://github.com/sprockets/sprockets.clients.cassandra/blob/master/HISTORY.rst
1. Create a new virtual environment using `pyvenv`_ or `virtualenv`_ and .. |Version| image:: https://badge.fury.io/py/sprockets.clients.cassandra.svg?
**activate it** :target: https://badge.fury.io/py/sprockets.clients.cassandra
2. Install development requirements - `pip install -r dev-requirements`
3. `./setup.py nosetests` will run the test suite with coverage enabled
4. `detox`_ is installed and will run the test suite across all supported
python platforms
5. `./setup.py build_sphinx` will generate documentation into
*build/sphinx/html*
TL;DR .. |Status| image:: https://travis-ci.org/sprockets/sprockets.clients.cassandra.svg?branch=master
+++++ :target: https://travis-ci.org/sprockets/sprockets.clients.cassandra
:: .. |Coverage| image:: https://codecov.io/github/sprockets/sprockets.clients.cassandra/coverage.svg?branch=master
:target: https://codecov.io/github/sprockets/sprockets.clients.cassandra?branch=master
$ pyvenv env .. |Downloads| image:: https://pypip.in/d/sprockets.clients.cassandra/badge.svg
$ ./env/bin/pip install -qr dev-requirements.txt :target: https://pypi.python.org/pypi/sprockets.clients.cassandra
$ source env/bin/activate
(env) $ ./setup.py nosetests
(env) $ ./setup.py build_sphinx
(env) $ detox
.. _detox: https://testrun.org/tox/
.. _pyvenv: https://docs.python.org/3/library/venv.html
.. _virtualenv: https://virtualenv.pypa.io/

View file

@ -1,2 +1,3 @@
blist==1.3.6 blist>=1.3.6,<2
cassandra-driver==2.5.1 cassandra-driver>=2.5.1,<3
tornado>=3.2

View file

@ -7,7 +7,7 @@ cover-package=sprockets.clients.cassandra
match=^When|^should|^[Tt]est match=^When|^should|^[Tt]est
nocapture=1 nocapture=1
cover-branches=1 cover-branches=1
cover-tests=1 cover-erase=1
[nosy] [nosy]
tests=tests/unit --cover-package=sprockets.clients.cassandra tests=tests/unit --cover-package=sprockets.clients.cassandra

View file

@ -9,4 +9,3 @@
# minimize breakage to our dev environment. # minimize breakage to our dev environment.
coveralls>=0.4,<1.0 coveralls>=0.4,<1.0
nose>=1.3.1,<2.0.0 nose>=1.3.1,<2.0.0
tornado>=3.0.0,<4.0.0