Commit bafbae0
* Update check-code-and-run-tests.yml
* pytest --ignore=tests/pip/test_pip.py
* bin/exit.py: drop stale coding declaration and unused os import (also in its test)
* bin/logout.py: add missing shebang
* bin/du.py: add shebang, drop py2 coding declaration and __future__ import
* bin/tar.py: add shebang, drop py2 coding declaration and __future__ import
* bin/webviewer.py: add shebang, drop legacy coding declaration, tidy imports
* bin/clear.py: add shebang, drop py2 coding declaration and __future__ import
* bin/mkdir.py: drop py2 leftovers, use f-strings for error output
* bin/printenv.py: drop py2 leftovers, use f-strings for output
* bin/pwd.py: drop py2 leftovers, use f-strings for error output (also in its test)
* bin/touch.py: drop py2 leftovers, use f-strings for error output
* bin/unzip.py: add shebang, drop py2 leftovers, sort imports
* bin/xargs.py: add shebang, drop py2 leftovers, sort imports, drop unused os import
* bin/head.py: add shebang, drop py2 leftovers, sort imports
* bin/openin.py: drop py2 leftovers, use plain class instead of class(object)
* bin/quicklook.py: drop py2 leftovers, use plain class instead of class(object)
* bin/stashconf.py: add shebang, drop py2 leftovers, sort imports
* bin/which.py: add shebang, drop py2 leftovers, silence global-without-assignment lint warning
* bin/zip.py: add shebang, drop py2 leftovers, sort imports
* bin/grep.py: add shebang, drop py2 leftovers, use f-strings, silence global lint warning
* bin/latte.py: drop py2 leftovers, use plain class, iterate dict directly instead of .keys()
* bin/sort.py: add shebang, drop py2 leftovers and unused os import, sort imports
* bin/source.py: add shebang, drop py2 leftovers, rename unused var, use OSError instead of IOError
* bin/tail.py: add shebang, drop py2 coding declaration and __future__ import, sort imports
* bin/cowsay.py: add shebang, drop py2 leftovers, use str.removesuffix (also in its test)
* bin/echo.py: drop py2 coding declaration and __future__ import, mark unused escapes var (also in its test)
* bin/kill.py: add shebang, drop py2 leftovers, use f-strings
* bin/totd.py: add shebang, drop py2 leftovers, sort imports
* bin/umount.py: add shebang, use f-strings, sort mount_ctrl/mount_manager import
* bin/uniq.py: add shebang, drop py2 leftovers and unused os import, sort imports
* bin/fg.py: add shebang, drop py2 leftovers, use f-strings
* bin/find.py: add shebang, drop py2 leftovers, sort imports, use plain class instead of class(object)
* bin/more.py: drop py2-only shebang and legacy coding declaration, sort imports
* bin/pbcopy.py, bin/pbpaste.py: drop py2/six leftovers, use f-strings (also in shared test)
* bin/curl.py: add shebang, drop six/py2 leftovers, use f-strings
* bin/rmdir.py: drop py2-only shebang and legacy coding declaration, use f-strings
* bin/alias.py: add shebang, drop py2 leftovers, use f-strings (also in its test)
* bin/wol.py, lib/wakeonlan: drop py2 leftovers, use f-strings
* bin/rm.py: add shebang, drop six/py2 leftovers, simplify boolean prompt logic
* bin/ssh-keygen.py: add shebang, drop py2 leftovers, patch time.clock for paramiko/Crypto.Random compat
* bin/ln.py: sort imports, drop unused imports and dead return statements
* bin/selfupdate.py: drop py2 leftovers, replace deprecated distutils.version with packaging.version (also in its test)
* bin/cp.py: add shebang, drop py2 leftovers, use f-strings
* bin/ping.py: drop py2 coding declaration, six.moves.xrange and __future__ import, mark unused unpacked vars (also in its test)
* bin/whatis.py: add shebang, guard against missing command argument, add pinstash entry, use sys.argv instead of bare argv import
* bin/md5sum.py: replace Crypto.Hash and six with hashlib and stdlib BytesIO (also in its test)
* bin/printhex.py: drop py2 leftovers, work on raw ints instead of decoded chars, use f-strings
* bin/sha1sum.py: replace Crypto.Hash and six with hashlib and stdlib BytesIO (also in its test)
* bin/sha256sum.py: replace Crypto.Hash and six with hashlib and stdlib BytesIO (also in its test)
* bin/mv.py: drop py2 leftovers, use f-strings
* bin/cat.py: add shebang, drop py2 leftovers, sort imports (also in its test)
* bin/cd.py: add shebang, drop py2 leftovers, use f-strings
* bin/crypt.py: add shebang, switch to pyaes-whl, use plain class, combine nested with-statements
* bin/cut.py: replace _stash.libcore.input_stream dependency with local fileinput-based generator
* bin/diff.py: rewrite as testable CLI - argparse takes explicit args, Path-based I/O, optional console/_stash color output with ANSI fallback
* bin/easy_config.py, bin/pinstash.py: add pinstash command, easy_config now delegates shortcut creation to it instead of calling pythonista_add_action directly
* bin/edit.py: drop py2 leftovers, combine nested with-statements, sort imports
* bin/gci.py: add shebang, sort imports, use f-strings
* bin/jobs.py: add shebang, sort imports
* bin/python3.py: hardcode PY3=True instead of relying on removed _stash.PY3 attribute, sort imports
* bin/ptinstaller.py: add installer for tools registered on Pythonista Tools GitHub repo
* bin/scp.py: drop six/distutils leftovers, use packaging.version, use socket.timeout removed - use builtin TimeoutError
* bin/sqlite.py: add shebang, sort imports, combine nested with-statements
* bin/telnet.py: add shebang, switch to standard-telnetlib with auto-install fallback, sort imports
* bin/version.py: add shebang, sort imports, drop lambda in favor of def for collapseuser fallback
* bin/wc.py: replace _stash.libcore.input_stream dependency with local fileinput-based generator
* bin/wget.py: drop six leftovers and removed _stash.PY3 check, use f-strings
* bin/mail.py: drop six leftovers, use stdlib email/configparser modules directly, print send errors
* bin/man.py: add shebang, drop py2 raw_input shim, use f-strings
* bin/ssh.py: drop six/distutils leftovers, use packaging.version, patch time.clock for paramiko compat, fix key-based connect to not also pass password
* bin/ftpserver.py: add shebang, sort imports, use f-strings
* bin/gh.py: drop six leftovers, sort imports, drop unused var bindings, use f-strings
* bin/httpserver.py: rewrite as a py3 stdlib http.server-based file server with upload support
* bin/git.py, lib/git: drop py2 leftovers, simplify branch/merge helpers
* bin/tree.py, lib/tree_: add tree command implementation matching linux tree utility
* bin/pip.py: rewrite to delegate to standard pip via pip._internal instead of the custom wheels/dbutils implementation, add Pythonista workaround docs and tests
* pytest move options to pyproject.toml
* Update check-code-and-run-tests.yml
* test_libversion.py fix StaSh attributes
* skip `tests/system/test_termemu.py::TermemuTests::test_20` cause it's failing
* keychain stubs update
* `stashutils.fsi.base` fix
* migrate build metadata to pyproject.toml, trim setup.py to a thin shim, pin .python-version
* lib/mlpatches: modernize patch layer for py3, add time.clock shim for paramiko/Crypto.Random compat, drop legacy popen2/py2-only handlers
* system/, lib/stashutils/, lib/lib*.py: modernize interpreter core and mount/fsi infrastructure for py3, drop now-unused wheels.py
* add __main__.py as the new entry point, trim launch_stash.py/getstash.py/core.py to delegate to it
* bin/ls.py: modernize for py3, fix mimetype detection
* bin/mc.py: modernize for py3
* bin/mount.py: modernize for py3, adjust to updated stashutils dependencies
* bin/monkeylord.py: modernize for py3
* bin/dropbox_setup.py: modernize for py3
* stubs: add clipboard/console/dialogs/editor/objc_util stubs, finish keychain stub
* docs: update porting guide and README, add todo.md
* pyaes -> pyaes-whl
* telnetlib
* CI: add ruff job, reformat workflow, bump python 3.13->3.14, simplify test invocation
* tests/, tools/, man page: drop legacy coding declarations, tidy imports, sync docs for py3-only
* drop bin/python.py and lib/mlpatches/modules/popen2.py: Python 2 is no longer supported, use 'python3' instead
* uv.lock: sync with final dependency set
* fix: replace deprecated fileinput.hook_encoded
---------
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 55aa0bf commit bafbae0
245 files changed
Lines changed: 7912 additions & 5106 deletions
File tree
- .github/workflows
- bin
- docs
- lib
- git
- mlpatches
- modules
- tests
- stashutils
- fsi
- tree_
- wakeonlan
- man/monkeypatching
- stubs
- system
- shui
- tests
- bin
- cat
- install
- lib
- stashutils
- ls
- md5sum
- misc
- pbcopy_pbpaste
- pip
- data/stpkg
- stpkg
- sha1sum
- sha256sum
- system
- data
- ui
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
24 | | - | |
| 33 | + | |
25 | 34 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
| 7 | + | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | | - | |
| 23 | + | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | | - | |
| 39 | + | |
42 | 40 | | |
43 | | - | |
| 41 | + | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | 4 | | |
| 5 | + | |
8 | 6 | | |
9 | 7 | | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | | - | |
| 11 | + | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | | - | |
| 17 | + | |
20 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
| 7 | + | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | 24 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
0 commit comments