Skip to content

Commit 66809a7

Browse files
authored
Merge branch 'master' into kevin-brown-nedbatGH-1541
2 parents 498a192 + d6e621a commit 66809a7

File tree

5 files changed

+37
-7
lines changed

5 files changed

+37
-7
lines changed

CHANGES.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ development at the same time, such as 4.5.x and 5.0.
2020
Unreleased
2121
----------
2222

23-
Nothing yet.
23+
- Docs: a new :ref:`Migrating page <migrating>` with details about how to
24+
migrate between major versions of coverage.py. It currently covers the
25+
wildcard changes in 7.x. Thanks, `Brian Grohe <pull 1610_>`_.
2426

27+
.. _pull 1610: https://github.com/nedbat/coveragepy/pull/1610
2528

2629
.. scriv-start-here
2730

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Bill Hart
3232
Bradley Burns
3333
Brandon Rhodes
3434
Brett Cannon
35+
Brian Grohe
3536
Bruno P. Kinoshita
3637
Buck Evan
3738
Calen Pennington

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,5 @@ More information
234234
trouble
235235
faq
236236
Change history <changes>
237+
migrating
237238
sleepy

doc/migrating.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2+
.. For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
3+
4+
.. _migrating:
5+
6+
==========================
7+
Migrating between versions
8+
==========================
9+
10+
New major versions of coverage.py might require you to adjust your settings,
11+
options, or other aspects of your use. This page details those changes.
12+
13+
.. _migrating_6x_7x:
14+
15+
Migrating from 6.x to 7.x
16+
-------------------------
17+
18+
- The way that wildcards when specifying file paths work in certain cases has changed in 7.x:
19+
20+
- Previously, ``*`` would incorrectly match directory separators, making
21+
precise matching difficult. Patterns such as ``*tests/*``
22+
will need to be changed to ``*/tests/*``.
23+
24+
- ``**`` now matches any number of nested directories. If you wish to retain the behavior of
25+
``**/tests/*`` in previous versions then ``*/**/tests/*`` can be used instead.
26+
27+
- When remapping file paths with ``[paths]``, a path will be remapped only if
28+
the resulting path exists. Ensure that remapped ``[paths]`` exist when upgrading
29+
as this is now being enforced.

tox.ini

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ skip_missing_interpreters = {env:COVERAGE_SKIP_MISSING_INTERPRETERS:True}
99
toxworkdir = {env:TOXWORKDIR:.tox}
1010

1111
[testenv]
12-
usedevelop = True
1312
extras =
1413
toml
14+
package = editable
1515

1616
# PYVERSIONS
1717
deps =
@@ -30,15 +30,11 @@ setenv =
3030
# so override any local setting.
3131
PYTHONPYCACHEPREFIX=
3232

33-
# $set_env.py: COVERAGE_PIP_ARGS - Extra arguments for `pip install`
34-
# `--no-build-isolation` will let tox work with no network.
3533
commands =
3634
# Create tests/zipmods.zip
3735
python igor.py zip_mods
3836

39-
# Build the C extension and test with the CTracer
40-
python setup.py --quiet build_ext --inplace
41-
python -m pip install {env:COVERAGE_PIP_ARGS} -q -e .
37+
# Test with the CTracer that normal installation gives us.
4238
python igor.py test_with_tracer c {posargs}
4339

4440
# Remove the C extension so that we can test the PyTracer

0 commit comments

Comments
 (0)