diff options
Diffstat (limited to 'coverage')
-rw-r--r-- | coverage/control.py | 9 | ||||
-rw-r--r-- | coverage/version.py | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py index ebc38009..7c4a4828 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -101,7 +101,7 @@ class Coverage(object): auto_data=False, timid=None, branch=None, config_file=True, source=None, source_pkgs=None, omit=None, include=None, debug=None, concurrency=None, check_preimported=False, context=None, - ): + ): # pylint: disable=too-many-arguments """ Many of these arguments duplicate and override values that can be provided in a configuration file. Parameters that are missing here @@ -146,6 +146,10 @@ class Coverage(object): in the trees indicated by the file paths or package names will be measured. + `source_pkgs` is a list of package names. It works the same as + `source`, but can be used to name packages where the name can also be + interpreted as a file path. + `include` and `omit` are lists of file name patterns. Files that match `include` will be measured, files that match `omit` will not. Each will also accept a single string argument. @@ -176,6 +180,9 @@ class Coverage(object): .. versionadded:: 5.0 The `check_preimported` and `context` parameters. + .. versionadded:: 5.3 + The `source_pkgs` parameter. + """ # data_file=None means no disk file at all. data_file missing means # use the value from the config file. diff --git a/coverage/version.py b/coverage/version.py index b4a50337..830285f4 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 = (5, 2, 2, "alpha", 0) +version_info = (5, 3, 0, "alpha", 0) def _make_version(major, minor, micro, releaselevel, serial): |