Skip to content

Commit

Permalink
Merge pull request #12682 from ichard26/prune-vendoring
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed May 14, 2024
2 parents 4abdee1 + 692b7f0 commit 762faa7
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 2,172 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ repos:
'types-docutils==0.20.0.3',
'types-setuptools==68.2.0.0',
'types-freezegun==1.1.10',
'types-six==1.16.21.9',
'types-pyyaml==6.0.12.12',
]

Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ recursive-include src/pip/_vendor py.typed
recursive-include docs *.css *.py *.rst *.md
recursive-include docs *.dot *.png

exclude src/pip/_vendor/six
exclude src/pip/_vendor/six/moves
recursive-exclude src/pip/_vendor *.pyi

prune .github
Expand Down
1 change: 1 addition & 0 deletions news/six.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove vendored six.
1 change: 1 addition & 0 deletions news/webencodings.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove vendored webencodings.
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,13 @@ drop = [
]

[tool.vendoring.typing-stubs]
six = ["six.__init__", "six.moves.__init__", "six.moves.configparser"]
distro = []

[tool.vendoring.license.directories]
setuptools = "pkg_resources"

[tool.vendoring.license.fallback-urls]
distlib = "https://bitbucket.org/pypa/distlib/raw/master/LICENSE.txt"
webencodings = "https://github.com/SimonSapin/python-webencodings/raw/master/LICENSE"

######################################################################################
# ruff
Expand Down
4 changes: 0 additions & 4 deletions src/pip/_vendor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ def vendored(modulename):
vendored("colorama")
vendored("distlib")
vendored("distro")
vendored("six")
vendored("six.moves")
vendored("six.moves.urllib")
vendored("six.moves.urllib.parse")
vendored("packaging")
vendored("packaging.version")
vendored("packaging.specifiers")
Expand Down
18 changes: 0 additions & 18 deletions src/pip/_vendor/six.LICENSE

This file was deleted.

0 comments on commit 762faa7

Please sign in to comment.