-
Notifications
You must be signed in to change notification settings - Fork 187
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
fix handling of env-vars passed to plumbum Commands; support new with_cwd #513
Conversation
Is there more documentation for from plumbum import local
from plumbum.cmd import pwd
with local.cwd('/tmp'):
pwd.with_cwd('/home')().strip() == '/home'
pwd().strip() == '/tmp' |
Could you please address @AndydeCleyre's question? I'm a little worried if we are just adding another way to spell something that already exists, that's just more to maintain and adapt for Plumbum 2.0. |
sorry it took so long - What do you think? |
With test and docs, I'd be fine with it. |
6b3470d
to
bfde566
Compare
@henryiii - ci is failing on coverall actions, not sure how to proceed... |
Looks like it is due to this: coverallsapp/github-action#7 We'll probably have to disable coverage on PRs that are forked, unless there's some other way around this. We can print a report, but we can't upload it to coveralls. |
Oh, that's odd, this is not a fork. Should be getting a read/write token. (Probably still need to fix this for forks, but not as sure this is the problem). |
Coveralls 3 broke GitHub service detection ( TheKevJames/coveralls-python#252 ), so I now manually specify it and it should be working again. |
bfde566
to
2f2d283
Compare
… new with_cwd - don't use the non-threadsafe and session-dependent .env() context manager - sync popen support for 'env' param in all machine impls: local/ssh/paramiko - add .with_cwd() to complement .with_env()
2f2d283
to
e4db361
Compare
Fix handling of env-vars passed to plumbum BoundEnvCommands:
- don't use the non-threadsafe and session-dependent .env() context manager
- sync popen support for 'env' param in all machine impls: local/ssh/paramiko
- add .with_cwd() to complement .with_env()