[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 8bc0d809a6)
pull/83071/head
Matt Clay 7 months ago committed by GitHub
parent ad2a1a5fbe
commit 4448404b03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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: def get_sdist_path(version: Version, dist_dir: pathlib.Path = DIST_DIR) -> pathlib.Path:
"""Return the path to the sdist file.""" """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: def get_wheel_path(version: Version, dist_dir: pathlib.Path = DIST_DIR) -> pathlib.Path:

Loading…
Cancel
Save