Skip to content
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

Run python code using env variables from activated envs #3930

Merged
merged 52 commits into from
Jan 10, 2019

Conversation

DonJayamanne
Copy link

@DonJayamanne DonJayamanne commented Jan 8, 2019

For #3330
For #3746
For #2855
For #3953

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Unit tests & system/integration tests are added/updated
  • Test plan is updated as appropriate
  • package-lock.json has been regenerated by running npm install (if dependencies have changed)

@codecov
Copy link

codecov bot commented Jan 9, 2019

Codecov Report

Merging #3930 into master will increase coverage by 1%.
The diff coverage is 79%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #3930    +/-   ##
=======================================
+ Coverage      54%     55%    +1%     
=======================================
  Files         323     327     +4     
  Lines       13488   13660   +172     
  Branches     2096    2119    +23     
=======================================
+ Hits         7220    7385   +165     
- Misses       5789    5790     +1     
- Partials      479     485     +6
Impacted Files Coverage Δ
...c/client/interpreter/autoSelection/rules/system.ts 100% <ø> (ø) ⬆️
...ent/interpreter/locators/services/pipEnvService.ts 80% <ø> (ø) ⬆️
src/client/interpreter/helpers.ts 46% <ø> (ø) ⬆️
src/client/common/platform/fileSystem.ts 33% <ø> (-1%) ⬇️
src/client/common/platform/platformService.ts 31% <ø> (-2%) ⬇️
src/client/common/process/types.ts 86% <ø> (ø) ⬆️
src/client/common/process/proc.ts 14% <0%> (+1%) ⬆️
src/client/interpreter/interpreterService.ts 65% <0%> (-2%) ⬇️
src/client/interpreter/virtualEnvs/index.ts 80% <0%> (ø) ⬆️
src/client/unittests/common/runner.ts 19% <0%> (ø) ⬇️
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 44165a3...2ce0659. Read the comment docs.

@DonJayamanne DonJayamanne changed the title WIP - Run python code using env variables from activated envs Run python code using env variables from activated envs Jan 9, 2019
Copy link
Member

@brettcannon brettcannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit worried about cached information for conda environments going stale if the user installs something before the timed cache invalidation.

I'm also wondering if the parsing code of the resulting environment is more complicated than it needs to be.

And because I'm me, I wonder if some of this could have been written as a Python script. 😁

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Member

@IanMatthewHuff IanMatthewHuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

news/2 Fixes/3330.md Outdated Show resolved Hide resolved
news/3 Code Health/3746.md Outdated Show resolved Hide resolved
pythonFiles/printEnvVariables.py Outdated Show resolved Hide resolved
brettcannon and others added 10 commits January 10, 2019 11:36
Co-Authored-By: DonJayamanne <don.jayamanne@yahoo.com>
Co-Authored-By: DonJayamanne <don.jayamanne@yahoo.com>
…e/pythonVSCode into issueCondaActivation

* 'issueCondaActivation' of https://github.com/DonJayamanne/pythonVSCode:
  Update news/2 Fixes/3330.md
  Update news/3 Code Health/3746.md
@DonJayamanne DonJayamanne merged commit e1964fd into microsoft:master Jan 10, 2019
@DonJayamanne DonJayamanne deleted the issueCondaActivation branch May 24, 2019 20:24
@lock lock bot locked as resolved and limited conversation to collaborators Jul 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants