Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Do not mount deps folder when running in virtual env #14993

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

Merged
merged 3 commits into from
Jun 16, 2018
Merged

Conversation

balloob
Copy link
Member

@balloob balloob commented Jun 16, 2018

Description:

When running in a virtual environment, do not add the dependencies inside the config folder to the module search path.

Related issue (if applicable): fixes #14991

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@balloob balloob requested a review from a team as a code owner June 16, 2018 14:06
@homeassistant homeassistant added cla-signed core small-pr PRs with less than 30 lines. labels Jun 16, 2018
@ghost ghost assigned balloob Jun 16, 2018
@ghost ghost added the in progress label Jun 16, 2018
@@ -25,7 +25,7 @@
from homeassistant.loader import get_component, get_platform
from homeassistant.util.yaml import load_yaml, SECRET_YAML
import homeassistant.helpers.config_validation as cv
from homeassistant.util import dt as date_util, location as loc_util
from homeassistant.util import dt as date_util, location as loc_util, package

Choose a reason for hiding this comment

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

'homeassistant.util.package' imported but unused

@balloob balloob changed the title Clear deps folder when running in virtual env Do not mount deps folder when running in virtual env Jun 16, 2018
@balloob balloob merged commit 0b114f0 into dev Jun 16, 2018
@ghost ghost removed the in progress label Jun 16, 2018
@pvizeli pvizeli deleted the clear-deps-folder branch June 18, 2018 07:15
@balloob balloob mentioned this pull request Jun 22, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Dec 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed core small-pr PRs with less than 30 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear config/deps folder when running in a virtual env
4 participants