alfred-pocket
alfred-pocket copied to clipboard
Port to Python 3
Thanks for the PR. It looks like this replaces alfred-workflow
with alpynist
and I'm not familiar with it. If someone from the AlfredApp community could provide an update on how workflows handle Python 3 support these days, that'd be great. Also, it'd be great if someone could give this a go and help reviewing. I still have a Python 2 installation on my MacBook.
I took a look at the PR and it read ok to me. Successful install and usage with Alfred 5.0.1 and Python 3.9, no py2 installed. The tests failed until the version file is read in text mode as suggested above.
The issue was already fixed in the latest version of Alpynist. I just pushed it.
@xilopaint Any updates on merging this PR?
@xilopaint Any updates on merging this PR?
You should ask @fniephaus, I'm only the PR author.
@devnoname120 Have you tested this PR? I haven't had the time to do so and I'd like to collect some feedback before merging a full rewrite.
@fniephaus Yes I can confirm that it works. I tested 96169ad on Alfred 5.1.
The only awkward part is that the workflow asked me twice to authorize with an error in the middle In Alfred:
- I typed
Pocket
in Alfred's bar and authorized it in the web page that opened. - I typed again
Pocket
in Alfred's bar but this time it displayed an error. I don't have a screenshot or a log but in the bar it displayedError
without any further details. - I typed again
Pocket
in Alfred's bar and authorized it again in the web page that opened. - I typed again
Pocket
and this time it worked flawlessly, I had access to all my lists and I couldn't find any issues. - After the workflow was properly authorized (step 3.) I didn't have any further issues. It now works every time when I open the Alfred bar and type
Pocket
.
@fniephaus I haven't thoroughly reviewed the code but imho it's ready for merging.
As it works with recent Alfred versions it's already a big leap forward. Making the code perfect would be a cherry on the cake that can be done in a later iteration and imho shouldn't get in the way of merging this PR. 😊