From 75db85986f88abcd82db14657c69c9c9a5e75d58 Mon Sep 17 00:00:00 2001 From: Hyunsu Cho Date: Tue, 27 Aug 2024 15:28:49 -0700 Subject: [PATCH] Use `packaging` Co-authored-by: jakirkham --- python-package/hatch_build.py | 2 +- python-package/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python-package/hatch_build.py b/python-package/hatch_build.py index 02febb099b9a..d81a21cd55d6 100644 --- a/python-package/hatch_build.py +++ b/python-package/hatch_build.py @@ -6,7 +6,7 @@ from typing import Any, Dict from hatchling.builders.hooks.plugin.interface import BuildHookInterface -from pip._vendor.packaging.tags import platform_tags +from packaging.tags import platform_tags def get_tag() -> str: diff --git a/python-package/pyproject.toml b/python-package/pyproject.toml index e097b1722e6a..367f77147f1b 100644 --- a/python-package/pyproject.toml +++ b/python-package/pyproject.toml @@ -1,7 +1,7 @@ [build-system] requires = [ "hatchling>=1.12.1", - "pip>=22.0", + "packaging>=21.3", ] backend-path = ["."] build-backend = "packager.pep517"