diff --git a/squatter/templates.py b/squatter/templates.py index c47ea32..ddbd729 100644 --- a/squatter/templates.py +++ b/squatter/templates.py @@ -52,4 +52,4 @@ def sdist(self) -> None: def upload(self) -> None: self.sdist() - check_call(["hatch", "upload"], cwd=self.staging_directory) + check_call(["hatch", "publish"], cwd=self.staging_directory) diff --git a/squatter/tests/__init__.py b/squatter/tests/__init__.py index 911d7c6..a2aa960 100644 --- a/squatter/tests/__init__.py +++ b/squatter/tests/__init__.py @@ -91,7 +91,7 @@ def patched_check_call(cmd: List[str], **kwargs: Any) -> Any: if cmd[0] != "hatch": return check_call(cmd, **kwargs) else: - if "upload" in cmd: + if "publish" in cmd: uploads += 1 check_call_mock.side_effect = patched_check_call