-
Notifications
You must be signed in to change notification settings - Fork 129
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
Break out utils.run_shell_command
to new class
#526
Break out utils.run_shell_command
to new class
#526
Conversation
874e6bb
to
d105606
Compare
The test builds are failing because of (I think) #527. |
Codecov Report
@@ Coverage Diff @@
## master #526 +/- ##
==========================================
+ Coverage 18.65% 19.31% +0.66%
==========================================
Files 31 32 +1
Lines 5061 5079 +18
Branches 1282 1282
==========================================
+ Hits 944 981 +37
+ Misses 4090 4071 -19
Partials 27 27
Continue to review full report at Codecov.
|
28f26ac
to
17ac42f
Compare
Ongoing refactoring efforts have been trying to introduce new packages. All packages must be listed in the packages argument to `setuptools.setup()`. `setuptools.find_packages()` provides a convenient way to list all packages without manually updating a list.
17ac42f
to
781cc06
Compare
def modified_env(self): | ||
env = os.environ.copy() | ||
|
||
if self.extra_env: |
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.
Would it make sense to use a ChainMap for this?
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.
@jstoja This would be a clever improvement to the current code. I've opted to merge this PR as it is (or rather through the rebase at #577), just because it primarily refactors existing code without changing any other logic.
If you are up for adding the ChainMap improvement to this class, I would love to review it and add it to master.
Description of proposed changes
No functional changes. Rewrite
utils.run_shell_command
as a class.This obsoletes #513. If this one is merged first, #513 should be closed.
Related issue(s)
none
Testing
Unit tests included.