Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
more merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Dec 17, 2023
1 parent 0752c59 commit fa057fd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 35 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dev = [
]

[project.scripts]
gphotos-sync = "photos_sync.__main__:main"
gphotos-sync = "gphotos_sync.__main__:main"

[project.urls]
GitHub = "https://github.com/gilesknap/gphotos-sync"
Expand All @@ -57,7 +57,7 @@ name = "Giles Knap"


[tool.setuptools_scm]
write_to = "src/photos_sync/_version.py"
write_to = "src/gphotos_sync/_version.py"

[tool.mypy]
ignore_missing_imports = true # Ignore missing stubs in imported modules
Expand Down
4 changes: 0 additions & 4 deletions src/gphotos_sync/__main__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
from argparse import ArgumentParser

from . import __version__
from .hello import HelloClass, say_hello_lots

__all__ = ["main"]


def main(args=None):
parser = ArgumentParser()
parser.add_argument("--version", action="version", version=__version__)
parser.add_argument("name", help="Name of the person to greet")
parser.add_argument("--times", type=int, default=5, help="Number of times to greet")
args = parser.parse_args(args)
say_hello_lots(HelloClass(args.name), args.times)


# test with: python -m gphotos_sync
Expand Down
11 changes: 0 additions & 11 deletions src/photos_sync/__init__.py

This file was deleted.

16 changes: 0 additions & 16 deletions src/photos_sync/__main__.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import subprocess
import sys

from photos_sync import __version__
from gphotos_sync import __version__


def test_cli_version():
cmd = [sys.executable, "-m", "photos_sync", "--version"]
cmd = [sys.executable, "-m", "gphotos_sync", "--version"]
assert subprocess.check_output(cmd).decode().strip() == __version__

0 comments on commit fa057fd

Please sign in to comment.