1
mirror of https://github.com/home-assistant/core synced 2024-07-30 21:18:57 +02:00
ha-core/homeassistant/scripts
Martin Hjelmare ba019c799a Make deps directory persistent over upgrades (#7801)
* Use pip install --user if venv not active

* Set PYTHONUSERBASE to deps directory, when installing with --user
  option.
* Reset --prefix option to workaround incompatability when installing
  with --user option. This requires pip version 8.0.0 or greater.
* Require pip version 8.0.3.
* Do not delete deps directory on home assistant upgrade.
* Fix local lib mount and check package exist.

* Update and add tests

* Fix upgrade from before version 0.46

* Extract function to get user site

* Add function(s) to package util to get user site.
* Use async subprocess for one of the functions to get user site.
* Add function to package util to check if virtual environment is
  active.
* Add and update tests.

* Update version for last removal of deps dir

* Address comments

* Rewrite package util tests with pytest

* Rewrite all existing unittest class based tests for package util as
  test functions, and capitalize pytest fixtures.
* Add test for installing with target inside venv.
2017-07-13 19:26:21 -07:00
..
benchmark Add initial benchmark framework (#7827) 2017-05-30 21:34:40 -07:00
macos Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
__init__.py Make deps directory persistent over upgrades (#7801) 2017-07-13 19:26:21 -07:00
check_config.py Fix some issues for PyLint 1.7.2 (#8356) 2017-07-05 20:02:16 -07:00
db_migrator.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
ensure_config.py Add ensure config script (#2548) 2016-07-17 15:24:42 -07:00
influxdb_import.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
influxdb_migrator.py Update docstrings (#7374) 2017-05-02 09:18:47 -07:00
keyring.py Script to manage secrets stored in the keyring (#2743) 2016-08-08 17:36:11 -07:00