Skip to content

Commit

Permalink
Optionally include "s"
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Dec 13, 2023
1 parent fbfa780 commit 82d167d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/packse/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def publish(targets: list[Path], skip_existing: bool, dry_run: bool):
if not target.is_dir():
raise InvalidPublishTarget(target, reason="Not a directory.")

logger.info("Publishing %s targets...", len(targets))
s = "" if len(targets) == 1 else "s"
logger.info("Publishing %s target%s...", len(targets), s)
for target in targets:
logger.info("Publishing '%s'...", target.name)
for distfile in target.iterdir():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_publish.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import pytest
import subprocess
from pathlib import Path

from packse import __development_base_path__

from .common import snapshot_command
from pathlib import Path


def test_publish_example(snapshot, tmpcwd: Path):
Expand Down

0 comments on commit 82d167d

Please sign in to comment.