Skip to content
This repository has been archived by the owner on Jul 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3 from sprockets/fix-coverage
Browse files Browse the repository at this point in the history
Fix coverage
  • Loading branch information
dave-shawley committed May 12, 2015
2 parents c348faf + e3798bc commit 3c589e9
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 52 deletions.
8 changes: 7 additions & 1 deletion .coveragerc
@@ -1,2 +1,8 @@
[run]
source=sprockets.clients.cassandra
branch = True
source=sprockets/clients/cassandra
[report]
exclude_lines =
pragma: no cover
def __repr__
ignore_errors = True
17 changes: 4 additions & 13 deletions .travis.yml
@@ -1,23 +1,14 @@
language: python
python:
- 2.7
- pypy
- 3.3
- 3.4
before_install:
- pip install codecov
install:
- pip install -r requirements.txt -r test-requirements.txt
- pip install -r requirements.txt -r test-requirements.txt
script: nosetests
after_success:
- coveralls
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
- codecov
services:
- cassandra
67 changes: 33 additions & 34 deletions README.rst
@@ -1,48 +1,47 @@
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
:target: https://coveralls.io/r/aweber/sprockets.clients.cassandra
Althought the underlying library supports several connection options,
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
:target: https://pypi.python.org/pypi/sprockets.clients.cassandra/
|Version| |Downloads| |Status| |Coverage|

.. image:: https://pypip.in/license/sprockets.clients.cassandra/badge.svg
:target: https://pypi.python.org/pypi/sprockets.clients.cassandra/
Documentation
-------------
https://sprocketsclientcassandra.readthedocs.org

.. image:: https://readthedocs.org/projects/sprockets.clients.cassandra/badge/?version=latest
:target: http://sprockets.clients.cassandra.readthedocs.org/en/latest/
Contributing
------------
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
**activate it**
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*
.. |Version| image:: https://badge.fury.io/py/sprockets.clients.cassandra.svg?
:target: https://badge.fury.io/py/sprockets.clients.cassandra

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
$ ./env/bin/pip install -qr dev-requirements.txt
$ 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/
.. |Downloads| image:: https://pypip.in/d/sprockets.clients.cassandra/badge.svg
:target: https://pypi.python.org/pypi/sprockets.clients.cassandra
5 changes: 3 additions & 2 deletions requirements.txt
@@ -1,2 +1,3 @@
blist==1.3.6
cassandra-driver==2.5.1
blist>=1.3.6,<2
cassandra-driver>=2.5.1,<3
tornado>=3.2
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -7,7 +7,7 @@ cover-package=sprockets.clients.cassandra
match=^When|^should|^[Tt]est
nocapture=1
cover-branches=1
cover-tests=1
cover-erase=1

[nosy]
tests=tests/unit --cover-package=sprockets.clients.cassandra
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Expand Up @@ -9,4 +9,3 @@
# minimize breakage to our dev environment.
coveralls>=0.4,<1.0
nose>=1.3.1,<2.0.0
tornado>=3.0.0,<4.0.0

0 comments on commit 3c589e9

Please sign in to comment.