Skip to content

Commit

Permalink
Remove vendored colorama (#12702)
Browse files Browse the repository at this point in the history
Pip's internal codebase doesn't use colorama anywhere. It was kept
around for rich, but rich 12+ doesn't need it (opting to issue the
appropriate Win32 API calls itself). pygments still imports colorama,
but it's an optional dependency for the command line interface which
pip evidently doesn't use.
  • Loading branch information
ichard26 committed May 14, 2024
1 parent 762faa7 commit d2a48b2
Show file tree
Hide file tree
Showing 20 changed files with 3 additions and 1,729 deletions.
1 change: 1 addition & 0 deletions news/12702.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove vendored colorama.
1 change: 0 additions & 1 deletion src/pip/_vendor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def vendored(modulename):
# Actually alias all of our vendored dependencies.
vendored("cachecontrol")
vendored("certifi")
vendored("colorama")
vendored("distlib")
vendored("distro")
vendored("packaging")
Expand Down
1 change: 0 additions & 1 deletion src/pip/_vendor/colorama.pyi

This file was deleted.

27 changes: 0 additions & 27 deletions src/pip/_vendor/colorama/LICENSE.txt

This file was deleted.

7 changes: 0 additions & 7 deletions src/pip/_vendor/colorama/__init__.py

This file was deleted.

102 changes: 0 additions & 102 deletions src/pip/_vendor/colorama/ansi.py

This file was deleted.

0 comments on commit d2a48b2

Please sign in to comment.