You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ A helper library in Python for authors of workflows for [Alfred 3 and 4][alfred]
17
17
18
18
<!-- [![Downloads][shield-download]][pypi] -->
19
19
20
-
Supports Alfred 3 and Alfred 4 on macOS 10.7+ (Python 2.7).
20
+
Supports Alfred 3 and Alfred 4 on macOS Catalina or later (with Python 3).
21
21
22
22
Alfred-Workflow takes the grunt work out of writing a workflow by giving you the tools to create a fast and featureful Alfred workflow from an API, application or library in minutes.
Copy file name to clipboardExpand all lines: docs/supported-versions.rst
+1-34Lines changed: 1 addition & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,48 +51,15 @@ Alfred-Workflow supports the same macOS versions as Alfred, namely 10.6 (Snow Le
51
51
Python versions
52
52
===============
53
53
54
-
Alfred-Workflow only officially supports the system Pythons that come with macOS (i.e. ``/usr/bin/python3``), which is 2.6 on 10.6/Snow Leopard and 2.7 on later versions.
54
+
Alfred-Workflow only officially supports the system Pythons that come with macOS (i.e. ``/usr/bin/python3``).
55
55
56
56
.. important::
57
57
58
58
Other Pythons (e.g. Homebrew, conda, pyenv etc.) are *not* supported.
59
59
60
60
This is a deliberate design choice, so please do not submit feature requests for support of, or bug reports concerning issues with any non-system Pythons.
61
61
62
-
**This includes Python 3**.
63
62
64
-
Python 3 support will be added in a new major version of the library when Catalina is more popular.
65
-
66
-
67
-
Here is the `full list of new features in Python 2.7`_, but the most important things if you want your workflow to run on Snow Leopard/Python 2.6 are:
68
-
69
-
- :mod:`argparse` is not available in 2.6. Use :mod:`getopt` or
70
-
`include argparse in your workflow`_. Personally, I'm a big fan of
71
-
`docopt`_ for parsing command-line arguments, but :mod:`argparse`
72
-
is better for certain use cases.
73
-
- You must specify field numbers for :meth:`str.format`, i.e.
74
-
``'{0}.{1}'.format(first, second)`` not just
75
-
``'{}.{}'.format(first, second)``.
76
-
- No :class:`~collections.Counter` or
77
-
:class:`~collections.OrderedDict` in :mod:`collections`.
78
-
- No dictionary views in 2.6.
79
-
- No set literals.
80
-
- No dictionary or set comprehensions.
81
-
82
-
Python 2.6 is still included in later versions of macOS (up to and including El Capitan), so run your Python scripts with ``/usr/bin/python32.6`` in addition to ``/usr/bin/python3`` (2.7) to make sure they will run on Snow Leopard.
83
-
84
-
85
-
Why no Python 3 support?
86
-
------------------------
87
-
88
-
Alfred-Workflow is targeted at the system Python on macOS. Its goal is to enable developers to build workflows that will "just work" for users on any vanilla installation of macOS since Snow Leopard.
89
-
90
-
As such, it :ref:`strongly discourages developers <thirdparty>` from requiring users of their workflows to bugger about with their OS in order to get a workflow to work. This naturally includes requiring the installation of some non-default Python.
91
-
92
-
Version 2 of Alfred-Workflow, which will be a complete rewrite, will support Python 3 and Alfred 4+ only.
93
-
94
-
95
-
.. _full list of new features in Python 2.7: https://docs.python.org/3/whatsnew/2.7.html
96
63
.. _include argparse in your workflow: https://pypi.python.org/pypi/argparse
0 commit comments