diff --git a/pyproject.toml b/pyproject.toml index 8ee07b2d0..b6d245070 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dependencies = [ # direct dependencies "build", "click >= 8", - "pip >= 22.2", + "pip >= 23", "tomli; python_version < '3.11'", # indirect dependencies "setuptools", # typically needed when pip-tools invokes setup.py diff --git a/tests/test_utils.py b/tests/test_utils.py index 7d31af92f..dd20e34ff 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -36,6 +36,11 @@ ) +def test_can_import_pyproject_hooks(): + # TODO: Remove this test when there is code using this package + from pip._vendor import pyproject_hooks # noqa: F401 + + def test_format_requirement(from_line): ireq = from_line("test==1.2") assert format_requirement(ireq) == "test==1.2" diff --git a/tox.ini b/tox.ini index 295e58798..581ae2b56 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = # NOTE: keep this in sync with the env list in .github/workflows/ci.yml. - py{37,38,39,310,311,312,py3}-pip{previous,latest,main}-coverage + py{38,39,310,311,312,py3}-pip{previous,latest,main}-coverage pip{previous,latest,main}-coverage pip{previous,latest,main} checkqa @@ -14,7 +14,7 @@ extras = testing coverage: coverage deps = - pipprevious: pip==22.2.* + pipprevious: pip==23.0.* piplatest: pip pipmain: https://github.com/pypa/pip/archive/main.zip setenv =