-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Subprocess support: run_process() #872
Merged
Merged
Changes from 14 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
de540de
Subprocess support: run_process()
oremanj 6e96fa0
Fix newsfragment filename
oremanj 44deb1a
fix yapf
oremanj f99dd32
doc updates after CR; add passthrough= option to run_process()
oremanj fcb931a
Merge remote-tracking branch 'origin/master' into subprocess_run
oremanj b857eae
Merge remote-tracking branch 'origin/master' into subprocess_run
oremanj cb1eda6
Merge remote-tracking branch 'oremanj/subprocess_run' into subprocess…
oremanj 339a6fa
CR comments
oremanj 4344b59
yapf
oremanj ef21983
Implement the suggested approach to run_process() options
oremanj 8307a2e
Merge remote-tracking branch 'origin/master' into subprocess_run
oremanj b059508
Merge remote-tracking branch 'oremanj/subprocess_run' into subprocess…
oremanj 3d12c4d
Merge remote-tracking branch 'origin/master' into subprocess_run
oremanj 82d2127
Respond to PR comments: remove capture=, accept bytearrays/etc
oremanj 4eb4c61
Describe options for capturing stdout+stderr
njsmith 854bcdb
Merge branch 'master' into subprocess_run
njsmith dadd851
Un-_core-ify
njsmith 8a3f0fe
Add missing 'random' import
njsmith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Add :func:`trio.run_process` as a high-level helper for running a process | ||
and waiting for it to finish, like the standard :func:`subprocess.run` does. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does
.. autoclass: :members:
not pick these up for some reason...?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to be able to control the order, and I couldn't get them to go in non-alphabetical order using
:members:
. (This despite our docs/source/conf.py havingautodoc_member_order = "bysource"
, and also trying an explicit:member-order: bysource
.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yeah, that's python-trio/sphinxcontrib-trio#13
This was already fixed back in August, we just never released it... whoops. I just released that, so hopefully bysource works now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can drop these now;
"bysource"
should work now. (And if it doesn't I want to know ;-))