Skip to content

Commit

Permalink
Remove unnecessary install requirement *pyperclip*
Browse files Browse the repository at this point in the history
The pyperclip library has not been needed on platforms other than
MacOS since version 0.31.0.  It is now only installed as a requirem-
ent on that platform.
  • Loading branch information
drmfinlay committed Apr 4, 2022
1 parent 77df5e4 commit 01f9b0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions dragonfly/windows/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
from dragonfly.windows.win32_clipboard import (Win32Clipboard as
Clipboard,
win32_clipboard_ctx)

else:
elif sys.platform == "darwin":
from dragonfly.windows.pyperclip_clipboard import \
PyperclipClipboard as Clipboard

else:
from dragonfly.windows.base_clipboard import (BaseClipboard as
Clipboard)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def read(*names):
"setuptools >= 40.0.0",
"packaging >= 19.0",
"six",
"pyperclip >= 1.7.0",
"enum34;python_version<'3.4'",
"regex",
"decorator",
Expand All @@ -113,6 +112,7 @@ def read(*names):
"pynput >= 1.4.2;platform_system=='Darwin'",
"pyobjc >= 5.2;platform_system=='Darwin'",
"py-applescript == 1.0.0;platform_system=='Darwin'",
"pyperclip >= 1.7.0;platform_system=='Darwin'",

# RPC requirements
"json-rpc",
Expand Down

0 comments on commit 01f9b0d

Please sign in to comment.