[stable-2.16] Update sdist path in release tool (#83059)

The latest setuptools package uses a normalized package name for the sdist.

(cherry picked from commit 8bc0d809a6)
This commit is contained in:
Matt Clay
2024-04-16 17:25:33 +00:00
committed by GitHub
parent 955d771fbf
commit 691ee745e0
+1 -1
View File
@@ -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: