From e9979de1b1e70e2b1b7ca3579554431852b3f7c0 Mon Sep 17 00:00:00 2001 From: Tim Hatch Date: Sat, 24 May 2025 02:39:17 -0700 Subject: [PATCH] It's "hatch publish" not "hatch upload" Also reported some difficulties in https://github.com/pypa/hatch/issues/1979 where it doesn't seem to default to what's in ~/.pypirc --- squatter/templates.py | 2 +- squatter/tests/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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