-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depend on pyperclip
on all platforms
#155
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #155 +/- ##
==========================================
- Coverage 98.49% 95.69% -2.80%
==========================================
Files 2 2
Lines 199 209 +10
==========================================
+ Hits 196 200 +4
- Misses 3 9 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hmm, looks like pyperclip isn't happy if xclip or xselect are not already installed:
|
I had difficulties having the copier module and tox work together, so mocked the copier away on Linux. This really isn't optimal. Any thoughts or ideas? Things I tried included:
|
I think this is okay, we don't need to (or want to) test the functionality of the copier itself. Instead, we want to test the functionality of em-keyboard when the copier is present or absent. I take it you've tested the What happens when:
|
Yes, it works with
Current state is that a
Copying to clipboard works as expected.
|
I think we may want to either:
|
Yes, I think this would be better: right now with this PR, a normal install will also install pyperclip, but you may well not have the system dependency, and it's not very friendly to just error out. |
Great. With the last commit this should now never error. If any copy-to-clipboard related dependency is missing, it should work as if |
Thank you! |
This should help with #153