Skip to content

Extract requirements#12051

Merged
pvizeli merged 1 commit intodevfrom
setup-cleanup
Jan 30, 2018
Merged

Extract requirements#12051
pvizeli merged 1 commit intodevfrom
setup-cleanup

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Jan 30, 2018

Description:

Minor cleanup of our setup process:

  • Extract Hass requirements code into its own file
  • Only check dependencies and requirements for each component/platform once

Checklist:

  • The code change is tested and works locally.

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@pvizeli
Copy link
Copy Markdown
Member

pvizeli commented Jan 30, 2018

🐬

@pvizeli pvizeli merged commit ec1c395 into dev Jan 30, 2018
@pvizeli pvizeli deleted the setup-cleanup branch January 30, 2018 11:30
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Requirements are no longer installed directly in deps directory but in the library folder under the deps directory. That path is given by mounting the local lib path.

'constraints': os.path.join(os.path.dirname(__file__), CONSTRAINT_FILE)
}
if not pkg_util.running_under_virtualenv():
kwargs['target'] = os.path.join(config_dir, 'deps')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is changing the target path. Target should be the library folder.

Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare Jan 30, 2018

Choose a reason for hiding this comment

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

Nevermind, I'm wrong and remembered incorrectly.

This was referenced Feb 9, 2018
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants