summaryrefslogtreecommitdiff
path: root/devel/py-coverage
diff options
context:
space:
mode:
authorwiz <wiz>2014-01-26 00:52:04 +0000
committerwiz <wiz>2014-01-26 00:52:04 +0000
commit95a2f4de344883cf572154fde9758f4d35acc834 (patch)
tree956e02f51eeacf3c0eda7ce189e289166b0074ed /devel/py-coverage
parent639d87a21436b7b78b8f75b394f767124c8dc6ae (diff)
downloadpkgsrc-95a2f4de344883cf572154fde9758f4d35acc834.tar.gz
Update to 3.7.1:
3.7.1 -- 13 December 2013 ------------------------- - Improved the speed of HTML report generation by about 20%. - Fixed the mechanism for finding OS-installed static files for the HTML report so that it will actually find OS-installed static files. 3.7 --- 6 October 2013 ---------------------- - Added the ``--debug`` switch to ``coverage run``. It accepts a list of options indicating the type of internal activity to log to stderr. - Improved the branch coverage facility, fixing `issue 92`_ and `issue 175`_. - Running code with ``coverage run -m`` now behaves more like Python does, setting sys.path properly, which fixes `issue 207`_ and `issue 242`_. - Coverage can now run .pyc files directly, closing `issue 264`_. - Coverage properly supports .pyw files, fixing `issue 261`_. - Omitting files within a tree specified with the ``source`` option would cause them to be incorrectly marked as unexecuted, as described in `issue 218`_. This is now fixed. - When specifying paths to alias together during data combining, you can now specify relative paths, fixing `issue 267`_. - Most file paths can now be specified with username expansion (``~/src``, or ``~build/src``, for example), and with environment variable expansion (``build/$BUILDNUM/src``). - Trying to create an XML report with no files to report on, would cause a ZeroDivideError, but no longer does, fixing `issue 250`_. - When running a threaded program under the Python tracer, coverage no longer issues a spurious warning about the trace function changing: "Trace function changed, measurement is likely wrong: None." This fixes `issue 164`_. - Static files necessary for HTML reports are found in system-installed places, to ease OS-level packaging of coverage.py. Closes `issue 259`_. - Source files with encoding declarations, but a blank first line, were not decoded properly. Now they are. Thanks, Roger Hu. - The source kit now includes the ``__main__.py`` file in the root coverage directory, fixing `issue 255`_. .. _issue 92: https://bitbucket.org/ned/coveragepy/issue/92/finally-clauses-arent-treated-properly-in .. _issue 164: https://bitbucket.org/ned/coveragepy/issue/164/trace-function-changed-warning-when-using .. _issue 175: https://bitbucket.org/ned/coveragepy/issue/175/branch-coverage-gets-confused-in-certain .. _issue 207: https://bitbucket.org/ned/coveragepy/issue/207/run-m-cannot-find-module-or-package-in .. _issue 242: https://bitbucket.org/ned/coveragepy/issue/242/running-a-two-level-package-doesnt-work .. _issue 218: https://bitbucket.org/ned/coveragepy/issue/218/run-command-does-not-respect-the-omit-flag .. _issue 250: https://bitbucket.org/ned/coveragepy/issue/250/uncaught-zerodivisionerror-when-generating .. _issue 255: https://bitbucket.org/ned/coveragepy/issue/255/directory-level-__main__py-not-included-in .. _issue 259: https://bitbucket.org/ned/coveragepy/issue/259/allow-use-of-system-installed-third-party .. _issue 261: https://bitbucket.org/ned/coveragepy/issue/261/pyw-files-arent-reported-properly .. _issue 264: https://bitbucket.org/ned/coveragepy/issue/264/coverage-wont-run-pyc-files .. _issue 267: https://bitbucket.org/ned/coveragepy/issue/267/relative-path-aliases-dont-work Version 3.6 --- 5 January 2013 ------------------------------ - Added a page to the docs about troublesome situations, closing `issue 226`_, and added some info to the TODO file, closing `issue 227`_. .. _issue 226: https://bitbucket.org/ned/coveragepy/issue/226/make-readme-section-to-describe-when .. _issue 227: https://bitbucket.org/ned/coveragepy/issue/227/update-todo Version 3.6b3 --- 29 December 2012 ---------------------------------- - Beta 2 broke the nose plugin. It's fixed again, closing `issue 224`_. .. _issue 224: https://bitbucket.org/ned/coveragepy/issue/224/36b2-breaks-nosexcover Version 3.6b2 --- 23 December 2012 ---------------------------------- - Coverage.py runs on Python 2.3 and 2.4 again. It was broken in 3.6b1. - The C extension is optionally compiled using a different more widely-used technique, taking another stab at fixing `issue 80`_ once and for all. - Combining data files would create entries for phantom files if used with ``source`` and path aliases. It no longer does. - ``debug sys`` now shows the configuration file path that was read. - If an oddly-behaved package claims that code came from an empty-string filename, coverage.py no longer associates it with the directory name, fixing `issue 221`_. .. _issue 80: https://bitbucket.org/ned/coveragepy/issue/80/is-there-a-duck-typing-way-to-know-we-cant .. _issue 221: https://bitbucket.org/ned/coveragepy/issue/221/coveragepy-incompatible-with-pyratemp Version 3.6b1 --- 28 November 2012 ---------------------------------- - Wildcards in ``include=`` and ``omit=`` arguments were not handled properly in reporting functions, though they were when running. Now they are handled uniformly, closing `issue 143`_ and `issue 163`_. **NOTE**: it is possible that your configurations may now be incorrect. If you use ``include`` or ``omit`` during reporting, whether on the command line, through the API, or in a configuration file, please check carefully that you were not relying on the old broken behavior. - The **report**, **html**, and **xml** commands now accept a ``--fail-under`` switch that indicates in the exit status whether the coverage percentage was less than a particular value. Closes `issue 139`_. - The reporting functions coverage.report(), coverage.html_report(), and coverage.xml_report() now all return a float, the total percentage covered measurement. - The HTML report's title can now be set in the configuration file, with the ``--title`` switch on the command line, or via the API. - Configuration files now support substitution of environment variables, using syntax like ``${WORD}``. Closes `issue 97`_. - Embarrassingly, the `[xml] output=` setting in the .coveragerc file simply didn't work. Now it does. - The XML report now consistently uses filenames for the filename attribute, rather than sometimes using module names. Fixes `issue 67`_. Thanks, Marcus Cobden. - Coverage percentage metrics are now computed slightly differently under branch coverage. This means that completely unexecuted files will now correctly have 0% coverage, fixing `issue 156`_. This also means that your total coverage numbers will generally now be lower if you are measuring branch coverage. - When installing, now in addition to creating a "coverage" command, two new aliases are also installed. A "coverage2" or "coverage3" command will be created, depending on whether you are installing in Python 2.x or 3.x. A "coverage-X.Y" command will also be created corresponding to your specific version of Python. Closes `issue 111`_. - The coverage.py installer no longer tries to bootstrap setuptools or Distribute. You must have one of them installed first, as `issue 202`_ recommended. - The coverage.py kit now includes docs (closing `issue 137`_) and tests. - On Windows, files are now reported in their correct case, fixing `issue 89`_ and `issue 203`_. - If a file is missing during reporting, the path shown in the error message is now correct, rather than an incorrect path in the current directory. Fixes `issue 60`_. - Running an HTML report in Python 3 in the same directory as an old Python 2 HTML report would fail with a UnicodeDecodeError. This issue (`issue 193`_) is now fixed. - Fixed yet another error trying to parse non-Python files as Python, this time an IndentationError, closing `issue 82`_ for the fourth time... - If `coverage xml` fails because there is no data to report, it used to create a zero-length XML file. Now it doesn't, fixing `issue 210`_. - Jython files now work with the ``--source`` option, fixing `issue 100`_. - Running coverage under a debugger is unlikely to work, but it shouldn't fail with "TypeError: 'NoneType' object is not iterable". Fixes `issue 201`_. - On some Linux distributions, when installed with the OS package manager, coverage.py would report its own code as part of the results. Now it won't, fixing `issue 214`_, though this will take some time to be repackaged by the operating systems. - Docstrings for the legacy singleton methods are more helpful. Thanks Marius Gedminas. Closes `issue 205`_. - The pydoc tool can now show docmentation for the class `coverage.coverage`. Closes `issue 206`_. - Added a page to the docs about contributing to coverage.py, closing `issue 171`_. - When coverage.py ended unsuccessfully, it may have reported odd errors like ``'NoneType' object has no attribute 'isabs'``. It no longer does, so kiss `issue 153`_ goodbye. .. _issue 60: https://bitbucket.org/ned/coveragepy/issue/60/incorrect-path-to-orphaned-pyc-files .. _issue 67: https://bitbucket.org/ned/coveragepy/issue/67/xml-report-filenames-may-be-generated .. _issue 82: https://bitbucket.org/ned/coveragepy/issue/82/tokenerror-when-generating-html-report .. _issue 89: https://bitbucket.org/ned/coveragepy/issue/89/on-windows-all-packages-are-reported-in .. _issue 97: https://bitbucket.org/ned/coveragepy/issue/97/allow-environment-variables-to-be .. _issue 100: https://bitbucket.org/ned/coveragepy/issue/100/source-directive-doesnt-work-for-packages .. _issue 111: https://bitbucket.org/ned/coveragepy/issue/111/when-installing-coverage-with-pip-not .. _issue 137: https://bitbucket.org/ned/coveragepy/issue/137/provide-docs-with-source-distribution .. _issue 139: https://bitbucket.org/ned/coveragepy/issue/139/easy-check-for-a-certain-coverage-in-tests .. _issue 143: https://bitbucket.org/ned/coveragepy/issue/143/omit-doesnt-seem-to-work-in-coverage .. _issue 153: https://bitbucket.org/ned/coveragepy/issue/153/non-existent-filename-triggers .. _issue 156: https://bitbucket.org/ned/coveragepy/issue/156/a-completely-unexecuted-file-shows-14 .. _issue 163: https://bitbucket.org/ned/coveragepy/issue/163/problem-with-include-and-omit-filename .. _issue 171: https://bitbucket.org/ned/coveragepy/issue/171/how-to-contribute-and-run-tests .. _issue 193: https://bitbucket.org/ned/coveragepy/issue/193/unicodedecodeerror-on-htmlpy .. _issue 201: https://bitbucket.org/ned/coveragepy/issue/201/coverage-using-django-14-with-pydb-on .. _issue 202: https://bitbucket.org/ned/coveragepy/issue/202/get-rid-of-ez_setuppy-and .. _issue 203: https://bitbucket.org/ned/coveragepy/issue/203/duplicate-filenames-reported-when-filename .. _issue 205: https://bitbucket.org/ned/coveragepy/issue/205/make-pydoc-coverage-more-friendly .. _issue 206: https://bitbucket.org/ned/coveragepy/issue/206/pydoc-coveragecoverage-fails-with-an-error .. _issue 210: https://bitbucket.org/ned/coveragepy/issue/210/if-theres-no-coverage-data-coverage-xml .. _issue 214: https://bitbucket.org/ned/coveragepy/issue/214/coveragepy-measures-itself-on-precise Version 3.5.3 --- 29 September 2012 ----------------------------------- - Line numbers in the HTML report line up better with the source lines, fixing `issue 197`_, thanks Marius Gedminas. - When specifying a directory as the source= option, the directory itself no longer needs to have a ``__init__.py`` file, though its subdirectories do, to be considered as source files. - Files encoded as UTF-8 with a BOM are now properly handled, fixing `issue 179`_. Thanks, Pablo Carballo. - Fixed more cases of non-Python files being reported as Python source, and then not being able to parse them as Python. Closes `issue 82`_ (again). Thanks, Julian Berman. - Fixed memory leaks under Python 3, thanks, Brett Cannon. Closes `issue 147`_. - Optimized .pyo files may not have been handled correctly, `issue 195`_. Thanks, Marius Gedminas. - Certain unusually named file paths could have been mangled during reporting, `issue 194`_. Thanks, Marius Gedminas. - Try to do a better job of the impossible task of detecting when we can't build the C extension, fixing `issue 183`_. - Testing is now done with `tox`_, thanks, Marc Abramowitz. .. _issue 82: https://bitbucket.org/ned/coveragepy/issue/82/tokenerror-when-generating-html-report .. _issue 147: https://bitbucket.org/ned/coveragepy/issue/147/massive-memory-usage-by-ctracer .. _issue 179: https://bitbucket.org/ned/coveragepy/issue/179/htmlreporter-fails-when-source-file-is .. _issue 183: https://bitbucket.org/ned/coveragepy/issue/183/install-fails-for-python-23 .. _issue 194: https://bitbucket.org/ned/coveragepy/issue/194/filelocatorrelative_filename-could-mangle .. _issue 195: https://bitbucket.org/ned/coveragepy/issue/195/pyo-file-handling-in-codeunit .. _issue 197: https://bitbucket.org/ned/coveragepy/issue/197/line-numbers-in-html-report-do-not-align .. _tox: http://tox.readthedocs.org/ Version 3.5.2 --- 4 May 2012 ---------------------------- No changes since 3.5.2.b1 Version 3.5.2b1 --- 29 April 2012 --------------------------------- - The HTML report has slightly tweaked controls: the buttons at the top of the page are color-coded to the source lines they affect. - Custom CSS can be applied to the HTML report by specifying a CSS file as the extra_css configuration value in the [html] section. - Source files with custom encodings declared in a comment at the top are now properly handled during reporting on Python 2. Python 3 always handled them properly. This fixes `issue 157`_. - Backup files left behind by editors are no longer collected by the source= option, fixing `issue 168`_. - If a file doesn't parse properly as Python, we don't report it as an error if the filename seems like maybe it wasn't meant to be Python. This is a pragmatic fix for `issue 82`_. - The ``-m`` switch on ``coverage report``, which includes missing line numbers in the summary report, can now be specifed as ``show_missing`` in the config file. Closes `issue 173`_. - When running a module with ``coverage run -m <modulename>``, certain details of the execution environment weren't the same as for ``python -m <modulename>``. This had the unfortunate side-effect of making ``coverage run -m unittest discover`` not work if you had tests in a directory named "test". This fixes `issue 155`_ and `issue 142`_. - Now the exit status of your product code is properly used as the process status when running ``python -m coverage run ...``. Thanks, JT Olds. - When installing into pypy, we no longer attempt (and fail) to compile the C tracer function, closing `issue 166`_. .. _issue 82: https://bitbucket.org/ned/coveragepy/issue/82/tokenerror-when-generating-html-report .. _issue 142: https://bitbucket.org/ned/coveragepy/issue/142/executing-python-file-syspath-is-replaced .. _issue 155: https://bitbucket.org/ned/coveragepy/issue/155/cant-use-coverage-run-m-unittest-discover .. _issue 157: https://bitbucket.org/ned/coveragepy/issue/157/chokes-on-source-files-with-non-utf-8 .. _issue 166: https://bitbucket.org/ned/coveragepy/issue/166/dont-try-to-compile-c-extension-on-pypy .. _issue 168: https://bitbucket.org/ned/coveragepy/issue/168/dont-be-alarmed-by-emacs-droppings .. _issue 173: https://bitbucket.org/ned/coveragepy/issue/173/theres-no-way-to-specify-show-missing-in
Diffstat (limited to 'devel/py-coverage')
-rw-r--r--devel/py-coverage/Makefile9
-rw-r--r--devel/py-coverage/PLIST15
-rw-r--r--devel/py-coverage/distinfo9
-rw-r--r--devel/py-coverage/patches/patch-aa36
4 files changed, 22 insertions, 47 deletions
diff --git a/devel/py-coverage/Makefile b/devel/py-coverage/Makefile
index 05758216016..146a750256b 100644
--- a/devel/py-coverage/Makefile
+++ b/devel/py-coverage/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2014/01/26 00:39:40 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2014/01/26 00:52:04 wiz Exp $
-DISTNAME= coverage-3.5.1
-PKGNAME= ${PYPKGPREFIX}-coverage-3.5.1
+DISTNAME= coverage-3.7.1
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= http://pypi.python.org/packages/source/c/coverage/
@@ -16,5 +16,8 @@ PLIST_SUBST= PYVERSSUFFIX=${PYVERSSUFFIX}
post-extract:
${CHMOD} +r ${WRKSRC}/coverage.egg-info/*
+post-install:
+ ${RM} ${DESTDIR}${PREFIX}/bin/coverage
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-coverage/PLIST b/devel/py-coverage/PLIST
index a2a3e2600fc..50f2dab3207 100644
--- a/devel/py-coverage/PLIST
+++ b/devel/py-coverage/PLIST
@@ -1,5 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2012/02/17 18:19:30 drochner Exp $
-bin/coverage${PYVERSSUFFIX}
+@comment $NetBSD: PLIST,v 1.3 2014/01/26 00:52:04 wiz Exp $
+${PLIST.py2x}bin/coverage-2.7
+${PLIST.py2x}bin/coverage2
+${PLIST.py3x}bin/coverage-3.3
+${PLIST.py3x}bin/coverage3
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -39,6 +42,9 @@ ${PYSITELIB}/coverage/control.pyo
${PYSITELIB}/coverage/data.py
${PYSITELIB}/coverage/data.pyc
${PYSITELIB}/coverage/data.pyo
+${PYSITELIB}/coverage/debug.py
+${PYSITELIB}/coverage/debug.pyc
+${PYSITELIB}/coverage/debug.pyo
${PYSITELIB}/coverage/execfile.py
${PYSITELIB}/coverage/execfile.pyc
${PYSITELIB}/coverage/execfile.pyo
@@ -50,9 +56,9 @@ ${PYSITELIB}/coverage/html.pyc
${PYSITELIB}/coverage/html.pyo
${PYSITELIB}/coverage/htmlfiles/coverage_html.js
${PYSITELIB}/coverage/htmlfiles/index.html
-${PYSITELIB}/coverage/htmlfiles/jquery-1.4.3.min.js
${PYSITELIB}/coverage/htmlfiles/jquery.hotkeys.js
${PYSITELIB}/coverage/htmlfiles/jquery.isonscreen.js
+${PYSITELIB}/coverage/htmlfiles/jquery.min.js
${PYSITELIB}/coverage/htmlfiles/jquery.tablesorter.min.js
${PYSITELIB}/coverage/htmlfiles/keybd_closed.png
${PYSITELIB}/coverage/htmlfiles/keybd_open.png
@@ -80,6 +86,9 @@ ${PYSITELIB}/coverage/templite.py
${PYSITELIB}/coverage/templite.pyc
${PYSITELIB}/coverage/templite.pyo
${PYSITELIB}/coverage/tracer.so
+${PYSITELIB}/coverage/version.py
+${PYSITELIB}/coverage/version.pyc
+${PYSITELIB}/coverage/version.pyo
${PYSITELIB}/coverage/xmlreport.py
${PYSITELIB}/coverage/xmlreport.pyc
${PYSITELIB}/coverage/xmlreport.pyo
diff --git a/devel/py-coverage/distinfo b/devel/py-coverage/distinfo
index 5864374023d..e06352d5952 100644
--- a/devel/py-coverage/distinfo
+++ b/devel/py-coverage/distinfo
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.3 2014/01/26 00:39:40 wiz Exp $
+$NetBSD: distinfo,v 1.4 2014/01/26 00:52:04 wiz Exp $
-SHA1 (coverage-3.5.1.tar.gz) = 815061b1906bd83b7d8ba46db0986ce7c4e84951
-RMD160 (coverage-3.5.1.tar.gz) = 054797366f8bc1968fc75e0121aaba3d12576200
-Size (coverage-3.5.1.tar.gz) = 113277 bytes
-SHA1 (patch-aa) = 9c09c6a3f19ebf1dde966c317511c0356936fa4f
+SHA1 (coverage-3.7.1.tar.gz) = 008938fbb1658e3767199006486273be6d4da400
+RMD160 (coverage-3.7.1.tar.gz) = ba87d81ed228261c019629e23a904f248143ea1f
+Size (coverage-3.7.1.tar.gz) = 284735 bytes
diff --git a/devel/py-coverage/patches/patch-aa b/devel/py-coverage/patches/patch-aa
deleted file mode 100644
index fa967f7e5ca..00000000000
--- a/devel/py-coverage/patches/patch-aa
+++ /dev/null
@@ -1,36 +0,0 @@
-$NetBSD: patch-aa,v 1.3 2014/01/26 00:39:40 wiz Exp $
-
-Do not insist on distutils, by now an obsolete version of setuptools.
-Add python version to binary to allow paralle installation of the
-package for different python versions.
-
---- setup.py.orig 2011-06-29 12:22:52.000000000 +0000
-+++ setup.py
-@@ -38,18 +38,8 @@ Topic :: Software Development :: Testing
- # Pull in the tools we need.
- import sys, traceback
-
--# Distribute is a new fork of setuptools. It's supported on Py3.x, so we use
--# it there, but stick with classic setuptools on Py2.x until Distribute becomes
--# more accepted.
--if sys.version_info >= (3, 0):
-- from distribute_setup import use_setuptools
--else:
-- from ez_setup import use_setuptools
--
--use_setuptools()
--
- from setuptools import setup
- from distutils.core import Extension # pylint: disable=E0611,F0401
-
- # Get or massage our metadata.
-
-@@ -85,7 +74,7 @@ setup_args = dict(
-
- entry_points = {
- 'console_scripts': [
-- 'coverage = coverage:main',
-+ 'coverage%s = coverage:main' % sys.version[:3],
- ],
- },
-