summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-24 10:43:46 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-24 10:43:46 -0400
commitdc0d0c613de54cd5af74a1d3ac9d86235dc0aee9 (patch)
treef4c22b17e68b68212fcdd30cd30d56c5a0b0582e /coverage
parentd86dc0901812723ab470006430e0591d1dca99a3 (diff)
downloadpython-coveragepy-dc0d0c613de54cd5af74a1d3ac9d86235dc0aee9.tar.gz
Add license mention to the top of all files. #313.
Diffstat (limited to 'coverage')
-rw-r--r--coverage/__init__.py3
-rw-r--r--coverage/__main__.py4
-rw-r--r--coverage/annotate.py5
-rw-r--r--coverage/backunittest.py3
-rw-r--r--coverage/backward.py3
-rw-r--r--coverage/bytecode.py3
-rw-r--r--coverage/cmdline.py3
-rw-r--r--coverage/collector.py5
-rw-r--r--coverage/config.py3
-rw-r--r--coverage/control.py5
-rw-r--r--coverage/data.py5
-rw-r--r--coverage/debug.py3
-rw-r--r--coverage/env.py3
-rw-r--r--coverage/execfile.py3
-rw-r--r--coverage/files.py3
-rw-r--r--coverage/fullcoverage/encodings.py3
-rw-r--r--coverage/html.py5
-rw-r--r--coverage/htmlfiles/coverage_html.js3
-rw-r--r--coverage/htmlfiles/index.html3
-rw-r--r--coverage/htmlfiles/pyfile.html3
-rw-r--r--coverage/htmlfiles/style.css5
-rw-r--r--coverage/misc.py5
-rw-r--r--coverage/monkey.py5
-rw-r--r--coverage/parser.py5
-rw-r--r--coverage/phystokens.py3
-rw-r--r--coverage/plugin.py3
-rw-r--r--coverage/plugin_support.py3
-rw-r--r--coverage/python.py3
-rw-r--r--coverage/pytracer.py5
-rw-r--r--coverage/report.py5
-rw-r--r--coverage/results.py3
-rw-r--r--coverage/summary.py3
-rw-r--r--coverage/templite.py3
-rw-r--r--coverage/test_helpers.py3
-rw-r--r--coverage/tracer.c5
-rw-r--r--coverage/version.py3
-rw-r--r--coverage/xmlreport.py3
37 files changed, 124 insertions, 12 deletions
diff --git a/coverage/__init__.py b/coverage/__init__.py
index b59bad3..f9e8a04 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 55e0d25..35ab87a 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 91bbe67..4b4966e 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 5aff043..09574cc 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 46c70fb..fecb028 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 d730493..82929ce 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 c0c9a98..af5ff0c 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 8ea0427..52a80f6 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 63f3018..c60df10 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 ef9b8f1..d565013 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 704a348..930e04a 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 45d720c..8d36c1c 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 c1d838b..1d2846c 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 942bfd5..121f373 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 154954d..762445f 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 df83366..699f386 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 62c13e2..9022ac4 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 5ef0ece..bd6a875 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 767de41..25ced0e 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 #}
+
<!DOCTYPE html>
<html>
<head>
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html
index bf65ee5..7bf9f55 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 #}
+
<!DOCTYPE html>
<html>
<head>
diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css
index 038335c..2dfb8f6 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 6b7321d..c794b55 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 417b64f..c4ec68c 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 173bdf9..2841c6b 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 6d8e1ec..7a033ae 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 44dab55..c039f81 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 ae72f79..5c577be 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 b1667f6..5c126c4 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 3f03aaf..c657ad0 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 33a4607..fa08186 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 c7a2f95..f15fae7 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 60cb415..03270c0 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 9f882cf..8595b86 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 278b0a8..3ddb48b 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 7cdb772..11606eb 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 246dcba..f95881c 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 aa12ab2..b60cecd 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