From 084dfe96542b7e6164f596fc0ecbcc4e54293015 Mon Sep 17 00:00:00 2001 From: Malcolm Jones Date: Wed, 30 Apr 2014 20:08:40 -0400 Subject: [PATCH] more setup scripts adding coveragerc as well --- .coveragerc | 10 ++++++++++ .travis.yml | 24 ++++++++++++++++++++---- README.rst | 3 +++ scarlett/__init__.py | 3 ++- setup.cfg | 15 ++++++++++++++- 5 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..c145b6c --- /dev/null +++ b/.coveragerc @@ -0,0 +1,10 @@ +[report] +omit = + */pyshared/* + */python?.?/* + */site-packages/nose/* + */test/* +exclude_lines = + assert False + raise NotImplementedError + if __name__ == .__main__.: diff --git a/.travis.yml b/.travis.yml index 922be43..0f437c5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,23 @@ language: python -python: - - "2.7" + +matrix: + include: + - python: 2.7 + env: {TOX_ENV: py27, COVERAGE: 1} + - python: pypy + env: {TOX_ENV: pypy} + - python: 2.7 + env: {TOX_ENV: docs} + - python: 2.7 + env: {TOX_ENV: flake8} + before_install: - - sudo apt-get install swig + - travis_retry sudo apt-get update + - travis_retry sudo apt-get install -qq bash-completion swig + - travis_retry pip install tox sphinx + - "[ ! -z $COVERAGE ] && pip install coveralls || true" + install: pip install --allow-all-external -r requirements.txt -script: python tests/test_scarlett.py unit +script: tox -e $TOX_ENV + +#script: python tests/test_scarlett.py unit diff --git a/README.rst b/README.rst index f2bcb59..423b00d 100644 --- a/README.rst +++ b/README.rst @@ -11,6 +11,9 @@ scarlett .. image:: https://pypip.in/d/scarlett/badge.png :target: https://pypi.python.org/pypi/scarlett +.. image:: https://coveralls.io/repos/bossjones/scarlett/badge.png?branch=master + :target: https://coveralls.io/r/bossjones/scarlett?branch=master + S.C.A.R.L.E.T.T is Tony Darks artificially programmed intelligent computer. It is programmed to speak with a female voice in a British accent. diff --git a/scarlett/__init__.py b/scarlett/__init__.py index f90165e..2dde5ff 100755 --- a/scarlett/__init__.py +++ b/scarlett/__init__.py @@ -11,7 +11,8 @@ import logging import logging.config import urlparse -#from scarlett.errors +import scarlett.errors +import pprint __author__ = 'Malcolm Jones' __email__ = '@bossjones' diff --git a/setup.cfg b/setup.cfg index 0a8df87..69eb8b9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,15 @@ [wheel] -universal = 1 \ No newline at end of file +universal = 1 + +[nosetests] +verbosity=1 +logging-clear-handlers=1 + +[flake8] +# E241 missing whitespace after ',' (used to align visually) +# E221 multiple spaces before operator (used to align visually) +ignore=E241,E221 + +# List of files that have not been cleand up yet. We will try to reduce +# this with each commit +# exclude=test/test_config_command.py,test/test_files.py,test/test_art.py,test/test_dbcore.py,test/test_web.py,test/test_zero.py,test/rsrc/beetsplug/test.py,test/test_template.py,test/test_echonest.py,test/test_datequery.py,test/test_mb.py,test/test_convert.py,test/testall.py,test/test_player.py,test/test_query.py,test/test_mediafile.py,test/test_keyfinder.py,test/test_the.py,test/test_library.py,test/test_lyrics.py,test/test_ihate.py,test/test_vfs.py,test/test_replaygain.py,test/__init__.py,test/_common.py,test/test_mediafile_edge.py,test/test_ui.py