From 8bcb70f56a3056adaf67ca1c83baa12b1b244ef5 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 16 Apr 2024 10:06:14 -0700 Subject: [PATCH] [stable-2.14] Update sdist path in release tool The latest setuptools package uses a normalized package name for the sdist. (cherry picked from commit 8bc0d809a6f35dc8cc16ff3c8fbe1eb93778b3ad) Co-authored-by: Matt Clay --- 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: