From b99fbf1ff6a06309ecf6cce8d6ae97dee5626784 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 24 Jul 2015 10:43:46 -0400 Subject: Add license mention to the top of all files. #313. --- CHANGES.txt | 6 +- MANIFEST.in | 3 + Makefile | 3 + README.txt | 3 + __main__.py | 3 + coverage/__init__.py | 3 + coverage/__main__.py | 4 + coverage/annotate.py | 5 +- coverage/backunittest.py | 3 + coverage/backward.py | 3 + coverage/bytecode.py | 3 + coverage/cmdline.py | 3 + coverage/collector.py | 5 +- coverage/config.py | 3 + coverage/control.py | 5 +- coverage/data.py | 5 +- coverage/debug.py | 3 + coverage/env.py | 3 + coverage/execfile.py | 3 + coverage/files.py | 3 + coverage/fullcoverage/encodings.py | 3 + coverage/html.py | 5 +- coverage/htmlfiles/coverage_html.js | 3 + coverage/htmlfiles/index.html | 3 + coverage/htmlfiles/pyfile.html | 3 + coverage/htmlfiles/style.css | 5 +- coverage/misc.py | 5 +- coverage/monkey.py | 5 +- coverage/parser.py | 5 +- coverage/phystokens.py | 3 + coverage/plugin.py | 3 + coverage/plugin_support.py | 3 + coverage/python.py | 3 + coverage/pytracer.py | 5 +- coverage/report.py | 5 +- coverage/results.py | 3 + coverage/summary.py | 3 + coverage/templite.py | 3 + coverage/test_helpers.py | 3 + coverage/tracer.c | 5 +- coverage/version.py | 3 + coverage/xmlreport.py | 3 + doc/api.rst | 3 + doc/branch.rst | 3 + doc/changes.rst | 3 + doc/cmd.rst | 3 + doc/conf.py | 3 + doc/config.rst | 3 + doc/contributing.rst | 3 + doc/excluding.rst | 3 + doc/faq.rst | 3 + doc/index.rst | 3 + doc/install.rst | 3 + doc/plugins.rst | 3 + doc/source.rst | 3 + doc/subprocess.rst | 3 + doc/trouble.rst | 3 + igor.py | 3 + lab/branches.py | 3 + lab/hack_pyc.py | 3 + lab/lnotab.py | 122 --------------------- lab/parser.py | 3 + lab/run_trace.py | 3 + lab/show_pyc.py | 3 + metacov.ini | 3 + pylintrc | 3 + requirements.txt | 3 + setup.py | 3 + test_old.sh | 3 + tests/backtest.py | 3 + tests/coveragetest.py | 5 +- tests/covmodzip1.py | 3 + tests/eggsrc/egg1/egg1.py | 3 + tests/eggsrc/setup.py | 3 + tests/farm/annotate/annotate_dir.py | 3 + tests/farm/annotate/gold/white.py,cover | 3 + tests/farm/annotate/gold_anno_dir/a_a.py,cover | 3 + tests/farm/annotate/gold_anno_dir/b_b.py,cover | 3 + tests/farm/annotate/gold_anno_dir/multi.py,cover | 3 + tests/farm/annotate/gold_encodings/utf8.py,cover | 3 + tests/farm/annotate/gold_multi/a/a.py,cover | 3 + tests/farm/annotate/gold_multi/b/b.py,cover | 3 + tests/farm/annotate/gold_multi/multi.py,cover | 3 + tests/farm/annotate/gold_v24/white.py,cover | 3 + tests/farm/annotate/run.py | 3 + tests/farm/annotate/run_encodings.py | 3 + tests/farm/annotate/run_multi.py | 3 + tests/farm/annotate/src/a/a.py | 3 + tests/farm/annotate/src/b/b.py | 3 + tests/farm/annotate/src/multi.py | 3 + tests/farm/annotate/src/utf8.py | 3 + tests/farm/annotate/src/white.py | 3 + tests/farm/html/gold_a/a_py.html | 38 ++++--- tests/farm/html/gold_a/index.html | 8 +- tests/farm/html/gold_b_branch/b_py.html | 110 ++++++++++--------- tests/farm/html/gold_isolatin1/index.html | 8 +- tests/farm/html/gold_isolatin1/isolatin1_py.html | 30 +++-- tests/farm/html/gold_omit_1/index.html | 14 ++- tests/farm/html/gold_omit_1/m1_py.html | 24 ++-- tests/farm/html/gold_omit_1/m2_py.html | 24 ++-- tests/farm/html/gold_omit_1/m3_py.html | 24 ++-- tests/farm/html/gold_omit_1/main_py.html | 44 +++++--- tests/farm/html/gold_omit_2/index.html | 12 +- tests/farm/html/gold_omit_2/m2_py.html | 24 ++-- tests/farm/html/gold_omit_2/m3_py.html | 24 ++-- tests/farm/html/gold_omit_2/main_py.html | 44 +++++--- tests/farm/html/gold_omit_3/index.html | 10 +- tests/farm/html/gold_omit_3/m3_py.html | 24 ++-- tests/farm/html/gold_omit_3/main_py.html | 44 +++++--- tests/farm/html/gold_omit_4/index.html | 12 +- tests/farm/html/gold_omit_4/m1_py.html | 24 ++-- tests/farm/html/gold_omit_4/m3_py.html | 24 ++-- tests/farm/html/gold_omit_4/main_py.html | 44 +++++--- tests/farm/html/gold_omit_5/index.html | 10 +- tests/farm/html/gold_omit_5/m1_py.html | 24 ++-- tests/farm/html/gold_omit_5/main_py.html | 44 +++++--- tests/farm/html/gold_other/blah_blah_other_py.html | 24 ++-- tests/farm/html/gold_other/here_py.html | 38 ++++--- tests/farm/html/gold_other/index.html | 10 +- tests/farm/html/gold_partial/index.html | 8 +- tests/farm/html/gold_partial/partial_py.html | 50 +++++---- tests/farm/html/gold_styled/a_py.html | 38 ++++--- tests/farm/html/gold_styled/index.html | 8 +- tests/farm/html/gold_styled/style.css | 5 +- tests/farm/html/gold_unicode/index.html | 8 +- tests/farm/html/gold_unicode/unicode_py.html | 30 +++-- tests/farm/html/gold_x_xml/coverage.xml | 44 ++++---- tests/farm/html/gold_y_xml_branch/coverage.xml | 48 ++++---- tests/farm/html/othersrc/other.py | 3 + tests/farm/html/run_a.py | 3 + tests/farm/html/run_a_xml_1.py | 3 + tests/farm/html/run_a_xml_2.py | 3 + tests/farm/html/run_b_branch.py | 7 +- tests/farm/html/run_bom.py | 3 + tests/farm/html/run_isolatin1.py | 3 + tests/farm/html/run_omit_1.py | 3 + tests/farm/html/run_omit_2.py | 3 + tests/farm/html/run_omit_3.py | 3 + tests/farm/html/run_omit_4.py | 3 + tests/farm/html/run_omit_5.py | 3 + tests/farm/html/run_other.py | 3 + tests/farm/html/run_partial.py | 7 +- tests/farm/html/run_styled.py | 3 + tests/farm/html/run_tabbed.py | 3 + tests/farm/html/run_unicode.py | 3 + tests/farm/html/run_y_xml_branch.py | 3 + tests/farm/html/src/a.py | 3 + tests/farm/html/src/b.py | 3 + tests/farm/html/src/bom.py | 23 ++-- tests/farm/html/src/here.py | 3 + tests/farm/html/src/isolatin1.py | 5 +- tests/farm/html/src/m1.py | 3 + tests/farm/html/src/m2.py | 3 + tests/farm/html/src/m3.py | 3 + tests/farm/html/src/main.py | 3 + tests/farm/html/src/omit4.ini | 3 + tests/farm/html/src/omit5.ini | 3 + tests/farm/html/src/partial.py | 3 + tests/farm/html/src/run_a_xml_2.ini | 3 + tests/farm/html/src/tabbed.py | 3 + tests/farm/html/src/unicode.py | 5 +- tests/farm/html/src/y.py | 3 + tests/farm/run/run_chdir.py | 3 + tests/farm/run/run_timid.py | 3 + tests/farm/run/run_xxx.py | 3 + tests/farm/run/src/chdir.py | 3 + tests/farm/run/src/showtrace.py | 3 + tests/farm/run/src/xxx | 3 + tests/helpers.py | 3 + tests/js/tests.js | 3 + tests/modules/covmod1.py | 3 + tests/modules/pkg1/p1a.py | 3 + tests/modules/pkg1/p1b.py | 3 + tests/modules/pkg1/p1c.py | 3 + tests/modules/pkg1/runmod2.py | 3 + tests/modules/pkg1/sub/ps1a.py | 3 + tests/modules/pkg1/sub/runmod3.py | 3 + tests/modules/pkg2/p2a.py | 3 + tests/modules/pkg2/p2b.py | 3 + tests/modules/plugins/another.py | 3 + tests/modules/runmod1.py | 3 + tests/modules/usepkgs.py | 3 + tests/moremodules/othermods/othera.py | 3 + tests/moremodules/othermods/otherb.py | 3 + tests/moremodules/othermods/sub/osa.py | 3 + tests/moremodules/othermods/sub/osb.py | 3 + tests/osinfo.py | 3 + tests/plugin1.py | 3 + tests/plugin2.py | 3 + tests/stress_phystoken.tok | 3 + tests/stress_phystoken_dos.tok | 3 + tests/test_api.py | 5 +- tests/test_arcs.py | 5 +- tests/test_backward.py | 3 + tests/test_cmdline.py | 5 +- tests/test_collector.py | 3 + tests/test_concurrency.py | 3 + tests/test_config.py | 3 + tests/test_coverage.py | 6 +- tests/test_data.py | 3 + tests/test_debug.py | 3 + tests/test_execfile.py | 3 + tests/test_farm.py | 3 + tests/test_filereporter.py | 5 +- tests/test_files.py | 3 + tests/test_html.py | 3 + tests/test_misc.py | 3 + tests/test_oddball.py | 3 + tests/test_parser.py | 5 +- tests/test_phystokens.py | 5 +- tests/test_plugins.py | 3 + tests/test_process.py | 3 + tests/test_python.py | 3 + tests/test_results.py | 5 +- tests/test_summary.py | 9 +- tests/test_templite.py | 3 + tests/test_testing.py | 3 + tests/test_xml.py | 3 + tests/try_execfile.py | 3 + tox.ini | 6 +- tox_wheels.ini | 3 + tox_winkits.ini | 3 + 222 files changed, 1230 insertions(+), 534 deletions(-) delete mode 100644 lab/lnotab.py diff --git a/CHANGES.txt b/CHANGES.txt index 82d3c9a7..de65cfa6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + ------------------------------ Change history for Coverage.py ------------------------------ @@ -7,7 +10,7 @@ Latest ------ - Coverage.py is now licensed under the Apache 2.0 license. See NOTICE.txt for - details. + details. Closes `issue 313`_. - The data storage has been completely revamped. The data file is now almost-JSON instead of a pickle, closing `issue 236`_. The `CoverageData` @@ -38,6 +41,7 @@ Latest .. _issue 236: https://bitbucket.org/ned/coveragepy/issues/236/pickles-are-bad-and-you-should-feel-bad .. _issue 275: https://bitbucket.org/ned/coveragepy/issues/275/refer-consistently-to-project-as-coverage +.. _issue 313: https://bitbucket.org/ned/coveragepy/issues/313/add-license-file-containing-2-3-or-4 .. _issue 380: https://bitbucket.org/ned/coveragepy/issues/380/code-executed-by-exec-excluded-from .. 41 issues closed in 4.0 below here diff --git a/MANIFEST.in b/MANIFEST.in index 72246745..fd3afc4d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # MANIFEST.in file for coverage.py recursive-include coverage/htmlfiles * recursive-include coverage/fullcoverage * diff --git a/Makefile b/Makefile index 8e7299de..c7e20d98 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # Makefile for utility work on Coverage. default: diff --git a/README.txt b/README.txt index 2c6fe3d6..6b35f348 100644 --- a/README.txt +++ b/README.txt @@ -7,3 +7,6 @@ library to determine which lines are executable, and which have been executed. For more information, see http://nedbatchelder.com/code/coverage Code repo and issue tracking are at http://bitbucket.org/ned/coveragepy + +Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt diff --git a/__main__.py b/__main__.py index b11dafce..a44b820a 100644 --- a/__main__.py +++ b/__main__.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Be able to execute coverage.py by pointing Python at a working tree.""" import runpy, os diff --git a/coverage/__init__.py b/coverage/__init__.py index b59bad35..f9e8a04b 100644 --- a/coverage/__init__.py +++ b/coverage/__init__.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Code coverage measurement for Python. Ned Batchelder diff --git a/coverage/__main__.py b/coverage/__main__.py index 55e0d259..35ab87a5 100644 --- a/coverage/__main__.py +++ b/coverage/__main__.py @@ -1,4 +1,8 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Coverage.py's main entry point.""" + import sys from coverage.cmdline import main sys.exit(main()) diff --git a/coverage/annotate.py b/coverage/annotate.py index 91bbe670..4b4966e9 100644 --- a/coverage/annotate.py +++ b/coverage/annotate.py @@ -1,4 +1,7 @@ -"""Source file annotation for Coverage.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Source file annotation for coverage.py.""" import io import os diff --git a/coverage/backunittest.py b/coverage/backunittest.py index 5aff043f..09574ccb 100644 --- a/coverage/backunittest.py +++ b/coverage/backunittest.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Implementations of unittest features from the future.""" # Use unittest2 if it's available, otherwise unittest. This gives us diff --git a/coverage/backward.py b/coverage/backward.py index 46c70fb6..fecb028a 100644 --- a/coverage/backward.py +++ b/coverage/backward.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Add things to old Pythons so I can pretend they are newer.""" # This file does lots of tricky stuff, so disable a bunch of pylint warnings. diff --git a/coverage/bytecode.py b/coverage/bytecode.py index d7304936..82929cef 100644 --- a/coverage/bytecode.py +++ b/coverage/bytecode.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Bytecode manipulation for coverage.py""" import opcode diff --git a/coverage/cmdline.py b/coverage/cmdline.py index c0c9a986..af5ff0c5 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Command-line support for coverage.py.""" import glob diff --git a/coverage/collector.py b/coverage/collector.py index 8ea0427d..52a80f60 100644 --- a/coverage/collector.py +++ b/coverage/collector.py @@ -1,4 +1,7 @@ -"""Raw data collector for Coverage.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Raw data collector for coverage.py.""" import os, sys diff --git a/coverage/config.py b/coverage/config.py index 63f30180..c60df100 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Config file for coverage.py""" import os, re, sys diff --git a/coverage/control.py b/coverage/control.py index ef9b8f11..d5650131 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -1,4 +1,7 @@ -"""Core control stuff for Coverage.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Core control stuff for coverage.py.""" import atexit import inspect diff --git a/coverage/data.py b/coverage/data.py index 704a3481..930e04ae 100644 --- a/coverage/data.py +++ b/coverage/data.py @@ -1,4 +1,7 @@ -"""Coverage data for Coverage.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Coverage data for coverage.py.""" import glob import json diff --git a/coverage/debug.py b/coverage/debug.py index 45d720c3..8d36c1cd 100644 --- a/coverage/debug.py +++ b/coverage/debug.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Control of and utilities for debugging.""" import inspect diff --git a/coverage/env.py b/coverage/env.py index c1d838b1..1d2846c6 100644 --- a/coverage/env.py +++ b/coverage/env.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Determine facts about the environment.""" import os diff --git a/coverage/execfile.py b/coverage/execfile.py index 942bfd57..121f3731 100644 --- a/coverage/execfile.py +++ b/coverage/execfile.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Execute files of Python code.""" import marshal diff --git a/coverage/files.py b/coverage/files.py index 154954d6..762445fd 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """File wrangling.""" import fnmatch diff --git a/coverage/fullcoverage/encodings.py b/coverage/fullcoverage/encodings.py index df83366b..699f3863 100644 --- a/coverage/fullcoverage/encodings.py +++ b/coverage/fullcoverage/encodings.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Imposter encodings module that installs a coverage-style tracer. This is NOT the encodings module; it is an imposter that sets up tracing diff --git a/coverage/html.py b/coverage/html.py index 62c13e29..9022ac4f 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -1,4 +1,7 @@ -"""HTML reporting for Coverage.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""HTML reporting for coverage.py.""" import datetime import json diff --git a/coverage/htmlfiles/coverage_html.js b/coverage/htmlfiles/coverage_html.js index 5ef0ece5..bd6a8753 100644 --- a/coverage/htmlfiles/coverage_html.js +++ b/coverage/htmlfiles/coverage_html.js @@ -1,3 +1,6 @@ +// Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +// For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + // Coverage.py HTML report browser code. /*jslint browser: true, sloppy: true, vars: true, plusplus: true, maxerr: 50, indent: 4 */ /*global coverage: true, document, window, $ */ diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index 767de41e..25ced0eb 100644 --- a/coverage/htmlfiles/index.html +++ b/coverage/htmlfiles/index.html @@ -1,3 +1,6 @@ +{# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 #} +{# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt #} + diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index bf65ee59..7bf9f554 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -1,3 +1,6 @@ +{# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 #} +{# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt #} + diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index 038335c1..2dfb8f65 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -1,4 +1,7 @@ -/* CSS styles for Coverage. */ +/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */ +/* For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt */ + +/* CSS styles for coverage.py. */ /* Page-wide styles */ html, body, h1, h2, h3, p, table, td, th { margin: 0; diff --git a/coverage/misc.py b/coverage/misc.py index 6b7321da..c794b551 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -1,4 +1,7 @@ -"""Miscellaneous stuff for Coverage.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Miscellaneous stuff for coverage.py.""" import errno import hashlib diff --git a/coverage/monkey.py b/coverage/monkey.py index 417b64fe..c4ec68c6 100644 --- a/coverage/monkey.py +++ b/coverage/monkey.py @@ -1,4 +1,7 @@ -"""Monkey-patching to make coverage work right in some cases.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Monkey-patching to make coverage.py work right in some cases.""" import multiprocessing import multiprocessing.process diff --git a/coverage/parser.py b/coverage/parser.py index 173bdf9d..2841c6bb 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -1,4 +1,7 @@ -"""Code parsing for Coverage.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Code parsing for coverage.py.""" import collections import dis diff --git a/coverage/phystokens.py b/coverage/phystokens.py index 6d8e1ece..7a033aec 100644 --- a/coverage/phystokens.py +++ b/coverage/phystokens.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Better tokenizing for coverage.py.""" import codecs diff --git a/coverage/plugin.py b/coverage/plugin.py index 44dab55f..c039f817 100644 --- a/coverage/plugin.py +++ b/coverage/plugin.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Plugin interfaces for coverage.py""" import os diff --git a/coverage/plugin_support.py b/coverage/plugin_support.py index ae72f797..5c577be1 100644 --- a/coverage/plugin_support.py +++ b/coverage/plugin_support.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Support for plugins.""" import os.path diff --git a/coverage/python.py b/coverage/python.py index b1667f6d..5c126c4e 100644 --- a/coverage/python.py +++ b/coverage/python.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Python source expertise for coverage.py""" import os.path diff --git a/coverage/pytracer.py b/coverage/pytracer.py index 3f03aaf7..c657ad01 100644 --- a/coverage/pytracer.py +++ b/coverage/pytracer.py @@ -1,4 +1,7 @@ -"""Raw data collector for Coverage.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Raw data collector for coverage.py.""" import dis import sys diff --git a/coverage/report.py b/coverage/report.py index 33a46070..fa081862 100644 --- a/coverage/report.py +++ b/coverage/report.py @@ -1,4 +1,7 @@ -"""Reporter foundation for Coverage.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Reporter foundation for coverage.py.""" import os diff --git a/coverage/results.py b/coverage/results.py index c7a2f95e..f15fae74 100644 --- a/coverage/results.py +++ b/coverage/results.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Results of coverage measurement.""" import collections diff --git a/coverage/summary.py b/coverage/summary.py index 60cb4151..03270c04 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Summary reporting""" import sys diff --git a/coverage/templite.py b/coverage/templite.py index 9f882cf2..8595b868 100644 --- a/coverage/templite.py +++ b/coverage/templite.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """A simple Python template renderer, for a nano-subset of Django syntax.""" # Coincidentally named the same as http://code.activestate.com/recipes/496702/ diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py index 278b0a8a..3ddb48ba 100644 --- a/coverage/test_helpers.py +++ b/coverage/test_helpers.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Mixin classes to help make good tests.""" import atexit diff --git a/coverage/tracer.c b/coverage/tracer.c index 7cdb7727..11606ebd 100644 --- a/coverage/tracer.c +++ b/coverage/tracer.c @@ -1,4 +1,7 @@ -/* C-based Tracer for Coverage. */ +/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */ +/* For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt */ + +/* C-based Tracer for coverage.py. */ #include "Python.h" #include "structmember.h" diff --git a/coverage/version.py b/coverage/version.py index 246dcba2..f95881cc 100644 --- a/coverage/version.py +++ b/coverage/version.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """The version and URL for coverage.py""" # This file is exec'ed in setup.py, don't import anything! diff --git a/coverage/xmlreport.py b/coverage/xmlreport.py index aa12ab2d..b60cecd2 100644 --- a/coverage/xmlreport.py +++ b/coverage/xmlreport.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """XML reporting for coverage.py""" import os diff --git a/doc/api.rst b/doc/api.rst index bb039e9d..70015722 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _api: ============ diff --git a/doc/branch.rst b/doc/branch.rst index 71367de4..9cee70bf 100644 --- a/doc/branch.rst +++ b/doc/branch.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _branch: =========================== diff --git a/doc/changes.rst b/doc/changes.rst index 53ea3601..64be4f2f 100644 --- a/doc/changes.rst +++ b/doc/changes.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _changes: ==================================== diff --git a/doc/cmd.rst b/doc/cmd.rst index b7e00e56..7827a5ed 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _cmd: ============================== diff --git a/doc/conf.py b/doc/conf.py index c996bdaa..7be1ca79 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # # coverage.py documentation build configuration file, created by # sphinx-quickstart on Wed May 13 22:18:33 2009. diff --git a/doc/config.rst b/doc/config.rst index 7109fb88..980d0462 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _config: =================== diff --git a/doc/contributing.rst b/doc/contributing.rst index 32929e0b..99459b1d 100644 --- a/doc/contributing.rst +++ b/doc/contributing.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _contributing: =========================== diff --git a/doc/excluding.rst b/doc/excluding.rst index c306ad4d..465afe16 100644 --- a/doc/excluding.rst +++ b/doc/excluding.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _excluding: =============================== diff --git a/doc/faq.rst b/doc/faq.rst index 2bae33d2..e8e9c49e 100644 --- a/doc/faq.rst +++ b/doc/faq.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _faq: ================== diff --git a/doc/index.rst b/doc/index.rst index af24493c..299bd883 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + =========== Coverage.py =========== diff --git a/doc/install.rst b/doc/install.rst index fa01e636..57fd38e7 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _install: ============ diff --git a/doc/plugins.rst b/doc/plugins.rst index 32f00c9d..30d73396 100644 --- a/doc/plugins.rst +++ b/doc/plugins.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _plugins: ======= diff --git a/doc/source.rst b/doc/source.rst index 42fd3382..b8dcb7be 100644 --- a/doc/source.rst +++ b/doc/source.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _source: ======================= diff --git a/doc/subprocess.rst b/doc/subprocess.rst index 92ad135a..5a55dc4a 100644 --- a/doc/subprocess.rst +++ b/doc/subprocess.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _subprocess: ======================= diff --git a/doc/trouble.rst b/doc/trouble.rst index dbb22acc..b7011988 100644 --- a/doc/trouble.rst +++ b/doc/trouble.rst @@ -1,3 +1,6 @@ +.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +.. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + .. _trouble: ========================= diff --git a/igor.py b/igor.py index 112621d6..e89808a9 100644 --- a/igor.py +++ b/igor.py @@ -1,4 +1,7 @@ # coding: utf-8 +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Helper for building, testing, and linting coverage.py. To get portability, all these operations are written in Python here instead diff --git a/lab/branches.py b/lab/branches.py index fbba87eb..275eef4a 100644 --- a/lab/branches.py +++ b/lab/branches.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # Demonstrate some issues with coverage.py branch testing. def my_function(x): diff --git a/lab/hack_pyc.py b/lab/hack_pyc.py index 1cdc4765..0ebd9948 100644 --- a/lab/hack_pyc.py +++ b/lab/hack_pyc.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """ Wicked hack to get .pyc files to do bytecode tracing instead of line tracing. """ diff --git a/lab/lnotab.py b/lab/lnotab.py deleted file mode 100644 index 230e42bb..00000000 --- a/lab/lnotab.py +++ /dev/null @@ -1,122 +0,0 @@ -# Comment copied from Python/compile.c: -# -# All about a_lnotab. -# -# c_lnotab is an array of unsigned bytes disguised as a Python string. -# It is used to map bytecode offsets to source code line #s (when needed -# for tracebacks). -# -# The array is conceptually a list of -# (bytecode offset increment, line number increment) -# pairs. The details are important and delicate, best illustrated by example: -# -# byte code offset source code line number -# 0 1 -# 6 2 -# 50 7 -# 350 307 -# 361 308 -# -# The first trick is that these numbers aren't stored, only the increments -# from one row to the next (this doesn't really work, but it's a start): -# -# 0, 1, 6, 1, 44, 5, 300, 300, 11, 1 -# -# The second trick is that an unsigned byte can't hold negative values, or -# values larger than 255, so (a) there's a deep assumption that byte code -# offsets and their corresponding line #s both increase monotonically, and (b) -# if at least one column jumps by more than 255 from one row to the next, more -# than one pair is written to the table. In case #b, there's no way to know -# from looking at the table later how many were written. That's the delicate -# part. A user of c_lnotab desiring to find the source line number -# corresponding to a bytecode address A should do something like this -# -# lineno = addr = 0 -# for addr_incr, line_incr in c_lnotab: -# addr += addr_incr -# if addr > A: -# return lineno -# lineno += line_incr -# -# In order for this to work, when the addr field increments by more than 255, -# the line # increment in each pair generated must be 0 until the remaining addr -# increment is < 256. So, in the example above, assemble_lnotab (it used -# to be called com_set_lineno) should not (as was actually done until 2.2) -# expand 300, 300 to 255, 255, 45, 45, -# but to 255, 0, 45, 255, 0, 45. -# - -def lnotab(pairs, first_lineno=0): - """Yields byte integers representing the pairs of integers passed in.""" - assert first_lineno <= pairs[0][1] - cur_byte, cur_line = 0, first_lineno - for byte_off, line_off in pairs: - byte_delta = byte_off - cur_byte - line_delta = line_off - cur_line - assert byte_delta >= 0 - assert line_delta >= 0 - while byte_delta > 255: - yield 255 # byte - yield 0 # line - byte_delta -= 255 - yield byte_delta - while line_delta > 255: - yield 255 # line - yield 0 # byte - line_delta -= 255 - yield line_delta - cur_byte, cur_line = byte_off, line_off - -def lnotab_string(pairs, first_lineno=0): - return "".join(chr(b) for b in lnotab(pairs, first_lineno)) - -def byte_pairs(lnotab): - """Yield pairs of integers from a string.""" - for i in range(0, len(lnotab), 2): - yield ord(lnotab[i]), ord(lnotab[i+1]) - -def lnotab_numbers(lnotab, first_lineno=0): - """Yields the byte, line offset pairs from a packed lnotab string.""" - - last_line = None - cur_byte, cur_line = 0, first_lineno - for byte_delta, line_delta in byte_pairs(lnotab): - if byte_delta: - if cur_line != last_line: - yield cur_byte, cur_line - last_line = cur_line - cur_byte += byte_delta - cur_line += line_delta - if cur_line != last_line: - yield cur_byte, cur_line - - -## Tests - -def same_list(a, b): - a = list(a) - assert a == b - -def test_simple(): - same_list(lnotab([(0,1)]), [0, 1]) - same_list(lnotab([(0,1), (6, 2)]), [0, 1, 6, 1]) - -def test_starting_above_one(): - same_list(lnotab([(0,100), (6,101)]), [0, 100, 6, 1]) - same_list(lnotab([(0,100), (6,101)], 50), [0, 50, 6, 1]) - -def test_large_gaps(): - same_list(lnotab([(0,1), (300, 300)]), [0, 1, 255, 0, 45, 255, 0, 44]) - same_list(lnotab([(0,1), (255, 300)]), [0, 1, 255, 255, 0, 44]) - same_list(lnotab([(0,1), (255, 256)]), [0, 1, 255, 255]) - -def test_strings(): - assert lnotab_string([(0,1), (6, 2)]) == "\x00\x01\x06\x01" - assert lnotab_string([(0,1), (300, 300)]) == "\x00\x01\xff\x00\x2d\xff\x00\x2c" - -def test_numbers(): - same_list(lnotab_numbers("\x00\x01\x06\x01"), [(0,1), (6,2)]) - same_list(lnotab_numbers("\x00\x01\xff\x00\x2d\xff\x00\x2c"), [(0,1), (300, 300)]) - -def test_numbers_firstlineno(): - same_list(lnotab_numbers("\x00\x01\xff\x00\x2d\xff\x00\x2c", 10), [(0,11), (300, 310)]) diff --git a/lab/parser.py b/lab/parser.py index 662183a7..1343f4ce 100644 --- a/lab/parser.py +++ b/lab/parser.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Parser.py: a main for invoking code in coverage/parser.py""" from __future__ import division diff --git a/lab/run_trace.py b/lab/run_trace.py index 3822a804..ea0a6cb7 100644 --- a/lab/run_trace.py +++ b/lab/run_trace.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Run a simple trace function on a file of Python code.""" import os, sys diff --git a/lab/show_pyc.py b/lab/show_pyc.py index d6bbd921..147c6ff8 100644 --- a/lab/show_pyc.py +++ b/lab/show_pyc.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + import dis, marshal, struct, sys, time, types def show_pyc_file(fname): diff --git a/metacov.ini b/metacov.ini index 061b7886..ba8c234a 100644 --- a/metacov.ini +++ b/metacov.ini @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # Settings to use when using coverage.py to measure itself. [run] branch = true diff --git a/pylintrc b/pylintrc index 7b43e934..fba8b40b 100644 --- a/pylintrc +++ b/pylintrc @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # lint Python modules using external checkers. # # This is the main checker controling the other ones and the reports diff --git a/requirements.txt b/requirements.txt index 26ea3c08..e2eede24 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # PyPI requirements for running tests for coverage.py nose mock diff --git a/setup.py b/setup.py index 89a50b38..e8892f77 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # Distutils setup for coverage.py """Code coverage measurement for Python diff --git a/test_old.sh b/test_old.sh index 72c3b35c..50cc2409 100644 --- a/test_old.sh +++ b/test_old.sh @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # Steps to prepare and run coverage.py tests, for Pythons < 2.5 # This should do the same steps as tox.ini easy_install nose==1.2.1 mock==0.6.0 diff --git a/tests/backtest.py b/tests/backtest.py index 50834721..827e891f 100644 --- a/tests/backtest.py +++ b/tests/backtest.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """Add things to old Pythons so I can pretend they are newer, for tests.""" # pylint: disable=redefined-builtin diff --git a/tests/coveragetest.py b/tests/coveragetest.py index 2c923538..5a1de913 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -1,4 +1,7 @@ -"""Base test case class for coverage testing.""" +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + +"""Base test case class for coverage.py testing.""" import datetime import glob diff --git a/tests/covmodzip1.py b/tests/covmodzip1.py index 3ec4cdc4..6f135dd6 100644 --- a/tests/covmodzip1.py +++ b/tests/covmodzip1.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + """covmodzip.py: for putting into a zip file.""" j = 1 j += 1 diff --git a/tests/eggsrc/egg1/egg1.py b/tests/eggsrc/egg1/egg1.py index 3fadde33..72600808 100644 --- a/tests/eggsrc/egg1/egg1.py +++ b/tests/eggsrc/egg1/egg1.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # My egg file! walrus = "Eggman" diff --git a/tests/eggsrc/setup.py b/tests/eggsrc/setup.py index f9b8b9d0..c935798d 100644 --- a/tests/eggsrc/setup.py +++ b/tests/eggsrc/setup.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + from setuptools import setup setup( diff --git a/tests/farm/annotate/annotate_dir.py b/tests/farm/annotate/annotate_dir.py index 86c18cab..3bb2dbe7 100644 --- a/tests/farm/annotate/annotate_dir.py +++ b/tests/farm/annotate/annotate_dir.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + copy("src", "run") run(""" coverage run multi.py diff --git a/tests/farm/annotate/gold/white.py,cover b/tests/farm/annotate/gold/white.py,cover index 36b0b993..fc163226 100644 --- a/tests/farm/annotate/gold/white.py,cover +++ b/tests/farm/annotate/gold/white.py,cover @@ -1,3 +1,6 @@ + # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 + # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # A test case sent to me by Steve White > def f(self): diff --git a/tests/farm/annotate/gold_anno_dir/a_a.py,cover b/tests/farm/annotate/gold_anno_dir/a_a.py,cover index d0ff3c0c..4729cfbb 100644 --- a/tests/farm/annotate/gold_anno_dir/a_a.py,cover +++ b/tests/farm/annotate/gold_anno_dir/a_a.py,cover @@ -1,3 +1,6 @@ + # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 + # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + > def a(x): > if x == 1: > print("x is 1") diff --git a/tests/farm/annotate/gold_anno_dir/b_b.py,cover b/tests/farm/annotate/gold_anno_dir/b_b.py,cover index 90d076f1..228715f0 100644 --- a/tests/farm/annotate/gold_anno_dir/b_b.py,cover +++ b/tests/farm/annotate/gold_anno_dir/b_b.py,cover @@ -1,3 +1,6 @@ + # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 + # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + > def b(x): > msg = "x is %s" % x > print(msg) diff --git a/tests/farm/annotate/gold_anno_dir/multi.py,cover b/tests/farm/annotate/gold_anno_dir/multi.py,cover index 2a5c59ce..90a13c91 100644 --- a/tests/farm/annotate/gold_anno_dir/multi.py,cover +++ b/tests/farm/annotate/gold_anno_dir/multi.py,cover @@ -1,3 +1,6 @@ + # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 + # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + > import a.a > import b.b diff --git a/tests/farm/annotate/gold_encodings/utf8.py,cover b/tests/farm/annotate/gold_encodings/utf8.py,cover index 6dbf7e0d..3ef31e0f 100644 --- a/tests/farm/annotate/gold_encodings/utf8.py,cover +++ b/tests/farm/annotate/gold_encodings/utf8.py,cover @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- + # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 + # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # This comment has an accent: é > print("spam eggs") diff --git a/tests/farm/annotate/gold_multi/a/a.py,cover b/tests/farm/annotate/gold_multi/a/a.py,cover index fb3f5435..e5e97226 100644 --- a/tests/farm/annotate/gold_multi/a/a.py,cover +++ b/tests/farm/annotate/gold_multi/a/a.py,cover @@ -1,3 +1,6 @@ + # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 + # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + > def a(x): > if x == 1: > print "x is 1" diff --git a/tests/farm/annotate/gold_multi/b/b.py,cover b/tests/farm/annotate/gold_multi/b/b.py,cover index a3f5daec..26b25548 100644 --- a/tests/farm/annotate/gold_multi/b/b.py,cover +++ b/tests/farm/annotate/gold_multi/b/b.py,cover @@ -1,2 +1,5 @@ + # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 + # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + > def b(x): > print "x is %s" % x diff --git a/tests/farm/annotate/gold_multi/multi.py,cover b/tests/farm/annotate/gold_multi/multi.py,cover index 2a5c59ce..90a13c91 100644 --- a/tests/farm/annotate/gold_multi/multi.py,cover +++ b/tests/farm/annotate/gold_multi/multi.py,cover @@ -1,3 +1,6 @@ + # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 + # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + > import a.a > import b.b diff --git a/tests/farm/annotate/gold_v24/white.py,cover b/tests/farm/annotate/gold_v24/white.py,cover index bbd8d428..8af136b8 100644 --- a/tests/farm/annotate/gold_v24/white.py,cover +++ b/tests/farm/annotate/gold_v24/white.py,cover @@ -1,3 +1,6 @@ + # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 + # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # A test case sent to me by Steve White > def f(self): diff --git a/tests/farm/annotate/run.py b/tests/farm/annotate/run.py index 236f401f..33e5f671 100644 --- a/tests/farm/annotate/run.py +++ b/tests/farm/annotate/run.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + copy("src", "out") run(""" coverage run white.py diff --git a/tests/farm/annotate/run_encodings.py b/tests/farm/annotate/run_encodings.py index eb1a3a9a..527cd88f 100644 --- a/tests/farm/annotate/run_encodings.py +++ b/tests/farm/annotate/run_encodings.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + copy("src", "out") run(""" coverage run utf8.py diff --git a/tests/farm/annotate/run_multi.py b/tests/farm/annotate/run_multi.py index ef1e8238..4646293e 100644 --- a/tests/farm/annotate/run_multi.py +++ b/tests/farm/annotate/run_multi.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + copy("src", "out_multi") run(""" coverage run multi.py diff --git a/tests/farm/annotate/src/a/a.py b/tests/farm/annotate/src/a/a.py index c2583d1e..e3e6631d 100644 --- a/tests/farm/annotate/src/a/a.py +++ b/tests/farm/annotate/src/a/a.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + def a(x): if x == 1: print("x is 1") diff --git a/tests/farm/annotate/src/b/b.py b/tests/farm/annotate/src/b/b.py index 625a5490..b31d8c95 100644 --- a/tests/farm/annotate/src/b/b.py +++ b/tests/farm/annotate/src/b/b.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + def b(x): msg = "x is %s" % x print(msg) diff --git a/tests/farm/annotate/src/multi.py b/tests/farm/annotate/src/multi.py index 19a6200c..bf8cfd5f 100644 --- a/tests/farm/annotate/src/multi.py +++ b/tests/farm/annotate/src/multi.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + import a.a import b.b diff --git a/tests/farm/annotate/src/utf8.py b/tests/farm/annotate/src/utf8.py index 27342d87..fd43b2ab 100644 --- a/tests/farm/annotate/src/utf8.py +++ b/tests/farm/annotate/src/utf8.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # This comment has an accent: é print("spam eggs") diff --git a/tests/farm/annotate/src/white.py b/tests/farm/annotate/src/white.py index ecbbd25a..21e8a627 100644 --- a/tests/farm/annotate/src/white.py +++ b/tests/farm/annotate/src/white.py @@ -1,3 +1,6 @@ +# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 +# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt + # A test case sent to me by Steve White def f(self): diff --git a/tests/farm/html/gold_a/a_py.html b/tests/farm/html/gold_a/a_py.html index a1346451..e52b303e 100644 --- a/tests/farm/html/gold_a/a_py.html +++ b/tests/farm/html/gold_a/a_py.html @@ -1,3 +1,6 @@ + + + @@ -5,7 +8,7 @@ - Coverage for a: 67% + Coverage for a.py: 67% @@ -20,7 +23,7 @@