Skip to content

Commit

Permalink
Fix build: rumps is a macos only dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Sep 18, 2024
1 parent 662af2b commit cd59d6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions jaraco/home/trap-watcher.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import sys

if sys.platform != "darwin":
print("This app is only available on MacOS.")
sys.exit(1)
assert False # https://github.com/python/mypy/issues/9025#issuecomment-1087270212

import asyncio
import pathlib
import subprocess
import sys

import keyring
import rumps
Expand All @@ -11,7 +17,6 @@
from . import contact
from .compat.py38 import resources


app = typer.Typer()


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
'importlib_resources; python_version < "3.9"',
"jaraco.compat>=4.1",
"tempora>=5.7",
"rumps",
"rumps; sys_platform == 'darwin'",
"typer",
]
dynamic = ["version"]
Expand Down

0 comments on commit cd59d6a

Please sign in to comment.