Skip to content

Commit 8b4fe3a

Browse files
authored
It's "hatch publish" not "hatch upload" (#6)
1 parent c00bc3c commit 8b4fe3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

squatter/templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ def sdist(self) -> None:
5252

5353
def upload(self) -> None:
5454
self.sdist()
55-
check_call(["hatch", "upload"], cwd=self.staging_directory)
55+
check_call(["hatch", "publish"], cwd=self.staging_directory)

squatter/tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def patched_check_call(cmd: List[str], **kwargs: Any) -> Any:
9191
if cmd[0] != "hatch":
9292
return check_call(cmd, **kwargs)
9393
else:
94-
if "upload" in cmd:
94+
if "publish" in cmd:
9595
uploads += 1
9696

9797
check_call_mock.side_effect = patched_check_call

0 commit comments

Comments
 (0)