Commit Graph

8 Commits

Author SHA1 Message Date
Damian Shaw 68529081c2
Enforce f-strings via Ruff (#12393) 2023-11-07 09:14:56 +00:00
Oliver Mannion 62fb64ac96
Ignore PIP_REQUIRE_VIRTUALENV for `pip index` (#11671)
Ignore PIP_REQUIRE_VIRTUALENV in `pip index`
2023-02-06 07:05:31 +00:00
Stéphane Bidoul bb2a3d7410
Remove the html5lib deprecated feature flag. 2022-07-16 19:37:11 +02:00
Jon Dufresne bf5f4008e7
Replace vendored html5lib with stdlib
The html5lib library isn't strictly required as the same functionality
can be achieved through the stdlib html.parser module.

The html5lib is one of the largest uses of the six library. By dropping
this unnecessary dependency, the pip project is closer to dropping the
six library.

Additionally, html5lib maintenance has slowed down and the project has
rejected pull requests to drop Python 2 support.

For now, the html5lib code remains, but is gated behind a command
line option: `--use-deprecated=html5lib`. After a sufficient amount of
time has passed without any reported bugs, the vendored library and this
flag can be removed completely.
2022-01-28 06:45:57 +00:00
Jon Dufresne 32ee210b28 Harmonize type signature of Command.run() 2021-09-03 10:00:20 -07:00
Pradyun Gedam 8e2e1964a4
Blacken src/pip/_internal/commands/
Progresses the black formatting of the codebase further.
2021-07-23 17:54:08 +01:00
Harutaka Kawamura 2de3af1747
Complete type annotations in `pip/_internal/commands` (#10182) 2021-07-23 18:27:43 +08:00
Noah Gorny 3751878b42
Implement new command 'pip index versions' 2021-06-11 19:01:14 +08:00