Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pact-python-cli/hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from hatchling.builders.config import BuilderConfig
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
from packaging.tags import sys_tags
from packaging.version import Version

PKG_DIR = Path(__file__).parent.resolve() / "src" / "pact_cli"

Expand Down Expand Up @@ -205,7 +206,8 @@ def _pact_ruby_bin_url(self, version: str) -> str:
platform = self._sys_tag_platform()

if platform.startswith("macosx"):
os_name = "osx"
# Upstream renamed the macOS assets from `osx` to `macos` in 2.6.1.
os_name = "macos" if Version(version) >= Version("2.6.1") else "osx"
ext = "tar.gz"
elif "linux" in platform:
os_name = "linux"
Expand Down
Loading