Skip to content

Commit bc553db

Browse files
authored
Trim pyproject.toml and MANIFEST.in (pypa#13137)
This mostly removes legacy references to files that do not exist anymore. In addition, the smarter exclude_also coverage option is used instead of exclude_lines.
1 parent f8f0f5a commit bc553db

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

MANIFEST.in

-6
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,16 @@ include pyproject.toml
77

88
include src/pip/_vendor/README.rst
99
include src/pip/_vendor/vendor.txt
10-
include src/pip/_vendor/pyparsing/diagram/template.jinja2
1110
recursive-include src/pip/_vendor *LICENSE*
1211
recursive-include src/pip/_vendor *COPYING*
1312

14-
include docs/docutils.conf
1513
include docs/requirements.txt
1614

1715
exclude .git-blame-ignore-revs
18-
exclude .coveragerc
1916
exclude .mailmap
20-
exclude .appveyor.yml
2117
exclude .readthedocs.yml
2218
exclude .pre-commit-config.yaml
2319
exclude .readthedocs-custom-redirects.yml
24-
exclude tox.ini
2520
exclude noxfile.py
2621

2722
recursive-include src/pip/_vendor *.pem
@@ -34,6 +29,5 @@ recursive-exclude src/pip/_vendor *.pyi
3429
prune .github
3530
prune docs/build
3631
prune news
37-
prune tasks
3832
prune tests
3933
prune tools

pyproject.toml

+1-6
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ exclude = ["contrib", "docs", "tests*", "tasks"]
6060
"pip" = ["py.typed"]
6161
"pip._vendor" = ["vendor.txt"]
6262
"pip._vendor.certifi" = ["*.pem"]
63-
"pip._vendor.requests" = ["*.pem"]
64-
"pip._vendor.distlib._backport" = ["sysconfig.cfg"]
6563
"pip._vendor.distlib" = [
6664
"t32.exe",
6765
"t64.exe",
@@ -307,10 +305,7 @@ source0 = [
307305
]
308306

309307
[tool.coverage.report]
310-
exclude_lines = [
311-
# We must re-state the default because the `exclude_lines` option overrides
312-
# it.
313-
"pragma: no cover",
308+
exclude_also = [
314309
# This excludes typing-specific code, which will be validated by mypy anyway.
315310
"if TYPE_CHECKING",
316311
]

0 commit comments

Comments
 (0)