From a4920d3afbf85bdce03460c2175ffb0b3b908f09 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 31 Jul 2019 14:02:12 -0700 Subject: [PATCH] Uninstall typing --- azure-pipelines-ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index e62f86e4525..91a5e7bb509 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -97,11 +97,6 @@ stages: steps: - script: | python --version > .cache - # Typing will break if a version is installed that does not match our Python version. - # Preferably we don't have it installed as it is part of the stdlib. - # This is a TEMP. Eventually we should make sure our 4 dependencies drop typing. - # Find offending deps with `pipdeptree -r -p typing` - echo "typing==`python3 -V | awk '{print $2}'`" >> homeassistant/package_constraints.txt displayName: 'Set python $(python.container) for requirement cache' - task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1 displayName: 'Restore artifacts based on Requirements' @@ -116,6 +111,9 @@ stages: . venv/bin/activate pip install -U pip setuptools pytest-azurepipelines -c homeassistant/package_constraints.txt pip install -r requirements_test_all.txt -c homeassistant/package_constraints.txt + # This is a TEMP. Eventually we should make sure our 4 dependencies drop typing. + # Find offending deps with `pipdeptree -r -p typing` + pip uninstall typing displayName: 'Create Virtual Environment & Install Requirements' condition: and(succeeded(), ne(variables['CacheRestored'], 'true')) # Explicit Cache Save (instead of using RestoreAndSaveCache)