From 4448404b037d205eeaa7f29765aaacaadb4ec393 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 16 Apr 2024 10:23:43 -0700 Subject: [PATCH] [stable-2.17] Update sdist path in release tool (#83058) The latest setuptools package uses a normalized package name for the sdist. (cherry picked from commit 8bc0d809a6f35dc8cc16ff3c8fbe1eb93778b3ad) --- packaging/release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/release.py b/packaging/release.py index 97c58a74248..95ee2c3dec9 100755 --- a/packaging/release.py +++ b/packaging/release.py @@ -856,7 +856,7 @@ def test_built_artifact(path: pathlib.Path) -> None: def get_sdist_path(version: Version, dist_dir: pathlib.Path = DIST_DIR) -> pathlib.Path: """Return the path to the sdist file.""" - return dist_dir / f"ansible-core-{version}.tar.gz" + return dist_dir / f"ansible_core-{version}.tar.gz" def get_wheel_path(version: Version, dist_dir: pathlib.Path = DIST_DIR) -> pathlib.Path: