From 27ace3eb748bc728884cd90f92334ab1d8f7dc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Fredrik=20Ki=C3=A6r?= Date: Thu, 10 Sep 2020 22:59:00 +0200 Subject: [PATCH] Use new pip resolver --- .github/workflows/webviz-config.yml | 8 +++----- CONTRIBUTING.md | 4 ---- README.md | 3 +++ setup.py | 1 + 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/webviz-config.yml b/.github/workflows/webviz-config.yml index ed5832c7..1b15825a 100644 --- a/.github/workflows/webviz-config.yml +++ b/.github/workflows/webviz-config.yml @@ -50,14 +50,12 @@ jobs: - name: 📦 Install webviz-config with dependencies run: | - pip install 'pandas==${{ matrix.pandas-version }}' - pip install --upgrade pip - pip install . + pip install --upgrade pip wheel + pip install --use-feature=2020-resolver . 'pandas==${{ matrix.pandas-version }}' - name: 📦 Install test dependencies run: | - pip install .[tests] - pip install dash[testing] + pip install --use-feature=2020-resolver .[tests] wget https://chromedriver.storage.googleapis.com/$(wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE -q -O -)/chromedriver_linux64.zip unzip chromedriver_linux64.zip diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 717e1c81..4116b430 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -515,11 +515,7 @@ To run tests it is necessary to first install the [selenium chrome driver](https Then install the Python development requirements: ```bash pip install .[tests] -pip install dash[testing] ``` -The second of these commands appears to be necessary as long as -[this `pip` issue is open](https://github.com/pypa/pip/issues/4957). - You can then run the tests using ```bash pytest tests --forked diff --git a/README.md b/README.md index 26c5cb10..34ffd8dd 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,9 @@ The recommended and simplest way of installing `webviz-config` is to run pip install webviz-config ``` +> :warning: Unless you are using `pip` version `>=20.3` you should enable the new `pip` +resolver when installing, i.e. `pip install --use-feature=2020-resolver webviz-config`. + If you want to develop `webviz-config` and install the latest source code manually you can do something along the lines of: can run diff --git a/setup.py b/setup.py index 8fb78a32..066f396c 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,7 @@ def get_long_description() -> str: TESTS_REQUIRES = [ "bandit", "black", + "dash[testing]", "jsonschema", "mock", "mypy",