stash pip updated to handle dependencies and more
-
I have largely re-written the
pip
command. The new features are:-
Automatically install dependencies recursively. My favorite test case is
pip install boto3
. -
Install from github repo, e.g.
pip install selectel/pyte
. Note that the hosted code must conform to standard Python package structure. -
Install from an URL pointing to an archive file or a local archive file, e.g.
pip install https://github.com/selectel/pyte/archive/master.zip
. Again the code must conform to Python package structure.
The changes are available in the latest StaSh and can be retrieved running
selfupdate
(for Pythonista 3, useselfupdate py3
).Please let me know if you run into any issues.
-
-
replace the parsed= line (1022 in pip.py) with
package_name = '^([a-z0-9]|[a-z0-9][a-z0-9._-]*[a-z0-9])' parsed = re.findall(package_name+version_one,requirement)
I will submit a pull request here soon.
-
Not sure it's been mentioned before or not. But when in stash, if you use the auto correct/suggestion on the keyboard (I am only using apple keyboard) it goes horribly wrong.
-
@JonB Thanks!! I applied the change locally and it installed boto3 all the way through.
-
Thanks @JonB for fixing this issue. I have also merged the pull request to the master branch. It can be retrieved with
selfupdate -f
.
-
@Phuket2 You are right. The QuickType indeed causes chaos to the terminal. I always hide the QuickType bar. So I wasn't aware of this issue. After looking into it briefly, it does NOT seem possible to fix it. I guess you'll just have to hide it (swipe down on the bar).
I tried to disable it programmatically but 2.0 app store version crashes on following method
setAutocorrectionType_(1)
It does work in both of the Betas. I'll have it added when a new official version is out.
-
@ywangd You can work around the crash in 2.0 like this:
ObjCInstanceMethod(textview, 'setAutocorrectionType:')(1)
-
@omz That did the trick! Thanks!
-
the quick responses are really appreciated!
-
@ywangd, no problems I understand. The main reason to bring it up is mainly a support issue. I have used the autocorrect buttons a few times. And something fails, like selfupdate. But it didn't really fail, just got some strange input. Easy to jump to the conclusion that stash is not working.
Edit-Great to see @omz gave a way forward