File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ Fixed interaction between ``setuptools ``' package auto-discovery and
2
+ auto-generated ``htmlcov `` files.
3
+
4
+ Previously, the ``htmlcov `` name was ignored when searching for single-file
5
+ modules, however the correct behaviour is to ignore it when searching for
6
+ packages (since it is supposed to be a directory, see `coverage config `_)
7
+ -- by :user: `yukihiko-shinoda `.
8
+
9
+ .. _coverage config : https://coverage.readthedocs.io/en/stable/config.html#html-directory
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ class FlatLayoutPackageFinder(PEP420PackageFinder):
234
234
"benchmarks" ,
235
235
"exercise" ,
236
236
"exercises" ,
237
+ "htmlcov" , # Coverage.py
237
238
# ---- Hidden directories/Private packages ----
238
239
"[._]*" ,
239
240
)
@@ -273,7 +274,6 @@ class FlatLayoutModuleFinder(ModuleFinder):
273
274
"benchmarks" ,
274
275
"exercise" ,
275
276
"exercises" ,
276
- "htmlcov" ,
277
277
# ---- Hidden files/Private modules ----
278
278
"[._]*" ,
279
279
)
Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ class TestFlatLayoutPackageFinder:
217
217
),
218
218
"tool-specific" : (
219
219
[
220
+ "htmlcov/index.html" ,
220
221
"pkg/__init__.py" ,
221
222
"tasks/__init__.py" ,
222
223
"tasks/subpackage/__init__.py" ,
You can’t perform that action at this time.
0 commit comments