Skip to content

Commit

Permalink
Remove vendored six and webencodings
Browse files Browse the repository at this point in the history
urllib3 vendors six and webencodings was last used by html5lib.
  • Loading branch information
ichard26 committed May 7, 2024
1 parent a7369ba commit 692b7f0
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.

Loading

0 comments on commit 692b7f0

Please sign in to comment.