mirror of
https://github.com/sprockets/sprockets.clients.cassandra.git
synced 2024-11-24 03:00:19 +00:00
Change coverage tool to codecov.
Change coverage tool to codecov. Update README doc to refer to new coverage reports. Flush out some additional details in the README doc.
This commit is contained in:
parent
c348faf681
commit
072ba24f69
4 changed files with 47 additions and 37 deletions
|
@ -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
|
||||||
|
|
|
@ -4,11 +4,13 @@ python:
|
||||||
- pypy
|
- 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
|
- covercov
|
||||||
deploy:
|
deploy:
|
||||||
provider: pypi
|
provider: pypi
|
||||||
distributions: "sdist bdist_wheel"
|
distributions: "sdist bdist_wheel"
|
||||||
|
|
68
README.rst
68
README.rst
|
@ -1,48 +1,50 @@
|
||||||
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| |License|
|
||||||
: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/
|
.. |License| iamge:: https://pypi.in/license/sprockets.clients.cassandra/badge.svg?
|
||||||
.. _pyvenv: https://docs.python.org/3/library/venv.html
|
:target: https://sprocketsclientscassandra.readthedocs.org
|
||||||
.. _virtualenv: https://virtualenv.pypa.io/
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue