From 8e888c500fd16e023d74e7fb09d5bdb989ccf005 Mon Sep 17 00:00:00 2001 From: Shupeyko Nikita Date: Tue, 27 Jun 2017 16:36:17 +0300 Subject: [PATCH] Setup integrations (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Set up pyup.io * [wip] codecov integration * Update ptyprocess from 0.5.1 to 0.5.2 (#13) * Improve docs * Improve readme * Setup Travis CI * Fix .travis.yml * Fix GitHub project name in docs * Bump version: 0.1.0 → 0.2.0 * Fix setup.py classifiers * Bump version: 0.2.0 → 0.3.0 * Set up pyup.io * [wip] codecov integration * Add PyPI badge * Add other badges * Update badges * Re-order gbadges * Re-order badges --- .codecov.yml | 25 +++++++++++++++++++++ README.rst | 42 ++++++++++++++++-------------------- requirements/development.txt | 12 ++++++----- requirements/test.in | 2 ++ requirements/test.txt | 7 ++++++ tox.ini | 5 ++++- 6 files changed, 63 insertions(+), 30 deletions(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..09b08d3 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,25 @@ +codecov: + notify: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "90...100" + status: + project: yes + patch: yes + changes: no + +parsers: + gcov: + branch_detection: + conditional: yes + loop: yes + method: no + macro: no + +comment: + layout: "header, diff" + behavior: default + require_changes: no diff --git a/README.rst b/README.rst index 068d91f..f48c14f 100644 --- a/README.rst +++ b/README.rst @@ -1,39 +1,33 @@ Python Humble Utils =================== -.. image:: https://img.shields.io/pypi/v/python_humble_utils.svg - :target: https://pypi.python.org/pypi/python_humble_utils - :alt: PyPI +.. image:: https://travis-ci.org/webyneter/python-humble-utils.svg?branch=master + :target: https://travis-ci.org/webyneter/python-humble-utils + :alt: Build Status -.. TODO .. image:: https://img.shields.io/pypi/status/python_humble_utils.svg - :target: - :alt: +.. image:: https://badge.fury.io/py/python-humble-utils.svg + :target: https://pypi.python.org/pypi/python-humble-utils + :alt: Latest Version -.. TODO .. image:: https://img.shields.io/pypi/pyversions/python_humble_utils.svg - :target: - :alt: +.. image:: https://img.shields.io/pypi/pyversions/python-humble-utils.svg + :target: https://pypi.python.org/pypi/python-humble-utils + :alt: Supported Python Versions -.. image:: https://img.shields.io/travis/webyneter/python_humble_utils.svg - :target: https://travis-ci.org/webyneter/python_humble_utils - :alt: Travis CI +.. image:: https://codecov.io/gh/webyneter/python-humble-utils/branch/master/graph/badge.svg + :target: https://codecov.io/gh/webyneter/python-humble-utils + :alt: Coverage -.. image:: https://pyup.io/repos/github/webyneter/python_humble_utils/shield.svg - :target: https://pyup.io/repos/github/webyneter/python_humble_utils/ - :alt: pyup.io +.. image:: https://pyup.io/repos/github/webyneter/python-humble-utils/shield.svg + :target: https://pyup.io/repos/github/webyneter/python-humble-utils/ + :alt: Updates .. image:: https://readthedocs.org/projects/python-humble-utils/badge/?version=latest - :target: https://python-humble-utils.readthedocs.io/en/latest/?badge=latest - :alt: Documentation + :target: http://python-humble-utils.readthedocs.io/en/latest/?badge=latest + :alt: Documentation Status .. image:: https://img.shields.io/badge/License-MIT-green.svg :target: https://opensource.org/licenses/MIT - :alt: License: MIT - -.. TODO: gitter -.. TODO: codecov -.. TODO: https://github.com/probot/stale -.. TODO: https://github.com/danger/danger - + :alt: MIT License Python utils for everyday use. diff --git a/requirements/development.txt b/requirements/development.txt index c117c31..d34c08a 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -9,10 +9,11 @@ argh==0.26.2 # via watchdog asn1crypto==0.22.0 # via cryptography babel==2.4.0 # via sphinx bumpversion==0.5.3 -certifi==2017.4.17 # via requests +certifi==2017.4.17 cffi==1.10.0 # via cryptography -chardet==3.0.4 # via requests +chardet==3.0.4 click==6.7 # via pip-tools +codecov==2.0.9 coverage==4.4.1 cryptography==1.9 decorator==4.0.11 # via ipython, traitlets @@ -20,7 +21,7 @@ docutils==0.13.1 # via sphinx first==2.0.1 # via pip-tools flake8==3.3.0 hypothesis==3.11.6 -idna==2.5 # via cryptography, requests +idna==2.5 imagesize==0.7.1 # via sphinx ipython-genutils==0.2.0 # via traitlets ipython==6.1.0 @@ -40,12 +41,13 @@ pycodestyle==2.3.1 pycparser==2.17 # via cffi pyflakes==1.5.0 pygments==2.2.0 # via ipython, sphinx +pytest-cov==2.5.1 pytest-mock==1.6.0 pytest-runner==2.11.1 pytest==3.1.2 pytz==2017.2 # via babel pyyaml==3.12 -requests==2.18.1 # via sphinx +requests==2.18.1 simplegeneric==0.8.1 # via ipython six==1.10.0 # via cryptography, pip-tools, prompt-toolkit, sphinx, traitlets snowballstemmer==1.2.1 # via sphinx @@ -53,7 +55,7 @@ sphinx==1.6.2 sphinxcontrib-websupport==1.0.1 # via sphinx tox==2.7.0 traitlets==4.3.2 # via ipython -urllib3==1.21.1 # via requests +urllib3==1.21.1 virtualenv==15.1.0 watchdog==0.8.3 wcwidth==0.1.7 # via prompt-toolkit diff --git a/requirements/test.in b/requirements/test.in index 8f51a26..b1213b3 100644 --- a/requirements/test.in +++ b/requirements/test.in @@ -3,7 +3,9 @@ tox==2.7.0 pytest==3.1.2 pytest-runner==2.11.1 +pytest-cov==2.5.1 pytest-mock==1.6.0 coverage==4.4.1 +codecov==2.0.9 flake8==3.3.0 hypothesis==3.11.6 diff --git a/requirements/test.txt b/requirements/test.txt index c0db227..e986466 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -4,17 +4,24 @@ # # pip-compile --output-file test.txt test.in # +certifi==2017.4.17 # via requests +chardet==3.0.4 # via requests +codecov==2.0.9 coverage==4.4.1 flake8==3.3.0 hypothesis==3.11.6 +idna==2.5 # via requests mccabe==0.6.1 # via flake8 pluggy==0.4.0 # via tox py==1.4.34 # via pytest, tox pycodestyle==2.3.1 # via flake8 pyflakes==1.5.0 # via flake8 +pytest-cov==2.5.1 pytest-mock==1.6.0 pytest-runner==2.11.1 pytest==3.1.2 +requests==2.18.1 # via codecov tox==2.7.0 +urllib3==1.21.1 # via requests virtualenv==15.1.0 # via tox wheel==0.29.0 diff --git a/tox.ini b/tox.ini index 273ea33..fe92639 100644 --- a/tox.ini +++ b/tox.ini @@ -8,11 +8,14 @@ python = [testenv] setenv = PYTHONPATH = {toxinidir} +passenv = + CI TRAVIS TRAVIS_* deps = -r{toxinidir}/requirements/test.txt commands = pip install -U pip - py.test --basetemp={envtmpdir} + py.test --basetemp={envtmpdir} --cov={toxinidir} + codecov [testenv:flake8] basepython = python