Skip to content

Commit

Permalink
Trim pyproject.toml and MANIFEST.in
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ichard26 committed Dec 30, 2024
1 parent f8f0f5a commit 0f4eec0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
6 changes: 0 additions & 6 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,16 @@ include pyproject.toml

include src/pip/_vendor/README.rst
include src/pip/_vendor/vendor.txt
include src/pip/_vendor/pyparsing/diagram/template.jinja2
recursive-include src/pip/_vendor *LICENSE*
recursive-include src/pip/_vendor *COPYING*

include docs/docutils.conf
include docs/requirements.txt

exclude .git-blame-ignore-revs
exclude .coveragerc
exclude .mailmap
exclude .appveyor.yml
exclude .readthedocs.yml
exclude .pre-commit-config.yaml
exclude .readthedocs-custom-redirects.yml
exclude tox.ini
exclude noxfile.py

recursive-include src/pip/_vendor *.pem
Expand All @@ -34,6 +29,5 @@ recursive-exclude src/pip/_vendor *.pyi
prune .github
prune docs/build
prune news
prune tasks
prune tests
prune tools
7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ exclude = ["contrib", "docs", "tests*", "tasks"]
"pip" = ["py.typed"]
"pip._vendor" = ["vendor.txt"]
"pip._vendor.certifi" = ["*.pem"]
"pip._vendor.requests" = ["*.pem"]
"pip._vendor.distlib._backport" = ["sysconfig.cfg"]
"pip._vendor.distlib" = [
"t32.exe",
"t64.exe",
Expand Down Expand Up @@ -307,10 +305,7 @@ source0 = [
]

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

0 comments on commit 0f4eec0

Please sign in to comment.