summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-12-26 16:15:48 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-12-26 16:15:48 -0500
commitd9a17e04ffe0c320c32f43a609f8f4c0f39cd427 (patch)
tree91adda11e1989d54ac72053e38f6e31cf3c96db3
parent3decb32c9270a0afeae333980fb7b5a944fbaaa7 (diff)
downloadpython-coveragepy-git-d9a17e04ffe0c320c32f43a609f8f4c0f39cd427.tar.gz
Doc updates for 4.3
-rw-r--r--CHANGES.rst4
-rw-r--r--README.rst9
-rw-r--r--coverage/version.py2
-rw-r--r--doc/changes.rst52
-rw-r--r--doc/conf.py4
-rw-r--r--doc/index.rst7
-rw-r--r--doc/python-coverage.1.txt5
7 files changed, 71 insertions, 12 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 5a0e1fe5..933d28bf 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -5,8 +5,8 @@
Change history for Coverage.py
==============================
-Unreleased
-----------
+Version 4.3 --- 2016-12-27
+--------------------------
- Subprocesses that are measured with `automatic subprocess measurement`_ used
to read in any pre-existing data file. This meant data would be incorrectly
diff --git a/README.rst b/README.rst
index 233e7520..1cb7282e 100644
--- a/README.rst
+++ b/README.rst
@@ -25,7 +25,10 @@ Documentation is on `Read the Docs <http://coverage.readthedocs.io>`_.
Code repository and issue tracker are on `Bitbucket <http://bitbucket.org/ned/coveragepy>`_,
with a mirrored repository on `GitHub <https://github.com/nedbat/coveragepy>`_.
-**New in 4.2:** better support for multiprocessing and combining data.
+**New in 4.3:** HTML ``--skip-covered``, sys.excepthook support, tox.ini
+support.
+
+New in 4.2: better support for multiprocessing and combining data.
New in 4.1: much-improved branch coverage.
@@ -80,8 +83,8 @@ For details, see https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt.
.. |codecov| image:: http://codecov.io/github/nedbat/coveragepy/coverage.svg?branch=master
:target: http://codecov.io/github/nedbat/coveragepy?branch=master
:alt: Coverage!
-.. |commits-since| image:: https://img.shields.io/github/commits-since/nedbat/coveragepy/coverage-4.2.svg
- :target: https://github.com/nedbat/coveragepy/compare/coverage-4.2...master
+.. |commits-since| image:: https://img.shields.io/github/commits-since/nedbat/coveragepy/coverage-4.3.svg
+ :target: https://github.com/nedbat/coveragepy/compare/coverage-4.3...master
:alt: See latest work
.. |saythanks| image:: https://img.shields.io/badge/saythanks.io-%E2%98%BC-1EAEDB.svg
:target: https://saythanks.io/to/nedbat
diff --git a/coverage/version.py b/coverage/version.py
index 35dc1eca..21808836 100644
--- a/coverage/version.py
+++ b/coverage/version.py
@@ -5,7 +5,7 @@
# This file is exec'ed in setup.py, don't import anything!
# Same semantics as sys.version_info.
-version_info = (4, 3, 0, 'alpha', 0)
+version_info = (4, 3, 0, 'final', 0)
def _make_version(major, minor, micro, releaselevel, serial):
diff --git a/doc/changes.rst b/doc/changes.rst
index 45f8627c..8f5b9c41 100644
--- a/doc/changes.rst
+++ b/doc/changes.rst
@@ -40,6 +40,7 @@ Major change history for coverage.py
.. :history: 20160110T125800, updated for 4.1b1
.. :history: 20160510T125200, updated for 4.1b3
.. :history: 20160521T074300, updated for 4.1
+.. :history: 20161226T153200, updated for 4.3
These are the major changes for coverage.py. For a more complete change
@@ -49,6 +50,57 @@ history, see the `CHANGES.rst`_ file in the source tree.
.. module:: coverage
+.. _changes_43:
+
+Version 4.3 --- 2016-12-27
+--------------------------
+
+Special thanks to **Loïc Dachary**, who took an extraordinary interest in
+coverage.py and contributed a number of improvements in this release.
+
+- The HTML report now supports a ``--skip-covered`` option like the other
+ reporting commands. Thanks, Loïc Dachary for the implementation, closing
+ `issue 433`_.
+
+- Subprocesses that are measured with `automatic subprocess measurement`_ used
+ to read in any pre-existing data file. This meant data would be incorrectly
+ carried forward from run to run. Now those files are not read, so each
+ subprocess only writes its own data. Fixes `issue 510`_.
+
+- Coverage.py wouldn't execute `sys.excepthook`_ when an exception happened in
+ your program. Now it does, thanks to Andrew Hoos. Closes `issue 535`_.
+
+.. _sys.excepthook: https://docs.python.org/3/library/sys.html#sys.excepthook
+
+- The ``coverage combine`` command will now fail if there are no data files to
+ combine. The combine changes in 4.2 meant that multiple combines could lose
+ data, leaving you with an empty .coverage data file. Fixes issues
+ `issue 525`_, `issue 412`_, `issue 516`_, and probably `issue 511`_.
+
+- The branch coverage issues described in `issue 493`_, `issue 496`_, and
+ `issue 502`_ are now fixed, thanks to Loïc Dachary.
+
+- Options can now be read from a tox.ini file, if any. Like setup.cfg, sections
+ are prefixed with "coverage:", so ``[run]`` options will be read from the
+ ``[coverage:run]`` section of tox.ini. Implements part of `issue 519`_.
+ Thanks, Stephen Finucane.
+
+- Coverage.py can now search .pex files for source, just as it can .zip and
+ .egg. Thanks, Peter Ebden.
+
+.. _issue 412: https://bitbucket.org/ned/coveragepy/issues/412/coverage-combine-should-error-if-no
+.. _issue 433: https://bitbucket.org/ned/coveragepy/issues/433/coverage-html-does-not-suport-skip-covered
+.. _issue 493: https://bitbucket.org/ned/coveragepy/issues/493/confusing-branching-failure
+.. _issue 496: https://bitbucket.org/ned/coveragepy/issues/496/incorrect-coverage-with-branching-and
+.. _issue 502: https://bitbucket.org/ned/coveragepy/issues/502/incorrect-coverage-report-with-cover
+.. _issue 510: https://bitbucket.org/ned/coveragepy/issues/510/erase-still-needed-in-42
+.. _issue 511: https://bitbucket.org/ned/coveragepy/issues/511/version-42-coverage-combine-empties
+.. _issue 516: https://bitbucket.org/ned/coveragepy/issues/516/running-coverage-combine-twice-deletes-all
+.. _issue 519: https://bitbucket.org/ned/coveragepy/issues/519/coverage-run-sections-in-toxini-or-as
+.. _issue 525: https://bitbucket.org/ned/coveragepy/issues/525/coverage-combine-when-not-in-parallel-mode
+.. _issue 535: https://bitbucket.org/ned/coveragepy/issues/535/sysexcepthook-is-not-called
+
+
.. _changes_42:
Version 4.2 --- 2016-07-26
diff --git a/doc/conf.py b/doc/conf.py
index 684628d9..7b6cc5c8 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -56,9 +56,9 @@ copyright = u'2009\N{EN DASH}2016, Ned Batchelder'
# built documents.
#
# The short X.Y version.
-version = '4.2'
+version = '4.3'
# The full version, including alpha/beta/rc tags.
-release = '4.2'
+release = '4.3'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
diff --git a/doc/index.rst b/doc/index.rst
index 07e940f7..047dd70e 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -48,6 +48,7 @@ Coverage.py
.. :history: 20160510T125300, updated for 4.1b3
.. :history: 20160521T074500, updated for 4.1
.. :history: 20160726T161300, updated for 4.2
+.. :history: 20161226T160400, updated for 4.3
Coverage.py is a tool for measuring code coverage of Python programs. It
@@ -60,14 +61,14 @@ not.
.. ifconfig:: not prerelease
- The latest version is coverage.py 4.2, released July 26th 2016. It
+ The latest version is coverage.py 4.3, released December 27th 2016. It
is supported on:
* Python versions 2.6, 2.7, 3.3, 3.4, 3.5, and 3.6.
- * PyPy 4.0 and 5.1.
+ * PyPy 5.6.
- * PyPy3 2.4 and 5.2
+ * PyPy3 5.5
.. ifconfig:: prerelease
diff --git a/doc/python-coverage.1.txt b/doc/python-coverage.1.txt
index 177fca23..94402b84 100644
--- a/doc/python-coverage.1.txt
+++ b/doc/python-coverage.1.txt
@@ -137,6 +137,9 @@ COMMAND REFERENCE
\-i, --ignore-errors
Ignore errors while reading source files.
+ \--skip-covered
+ Skip files with 100% coverage.
+
\--title `TITLE`
Use the text string `TITLE` as the title on the HTML.
@@ -223,7 +226,7 @@ The |command| command is a Python program which calls the ``coverage``
Python library to do all the work.
The library was originally developed by Gareth Rees, and is now developed
-by Ned Batchelder.
+by Ned Batchelder and many others.
This manual page was written by |author|.