Skip to content

Commit b01f03e

Browse files
authored
Use new pip resolver (#289)
1 parent babeba6 commit b01f03e

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.github/workflows/webviz-config.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,12 @@ jobs:
5050
5151
- name: 📦 Install webviz-config with dependencies
5252
run: |
53-
pip install 'pandas==${{ matrix.pandas-version }}'
54-
pip install --upgrade pip
55-
pip install .
53+
pip install --upgrade pip wheel
54+
pip install --use-feature=2020-resolver . 'pandas==${{ matrix.pandas-version }}'
5655
5756
- name: 📦 Install test dependencies
5857
run: |
59-
pip install .[tests]
60-
pip install dash[testing]
58+
pip install --use-feature=2020-resolver .[tests]
6159
wget https://chromedriver.storage.googleapis.com/$(wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE -q -O -)/chromedriver_linux64.zip
6260
unzip chromedriver_linux64.zip
6361

CONTRIBUTING.md

-4
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,7 @@ To run tests it is necessary to first install the [selenium chrome driver](https
515515
Then install the Python development requirements:
516516
```bash
517517
pip install .[tests]
518-
pip install dash[testing]
519518
```
520-
The second of these commands appears to be necessary as long as
521-
[this `pip` issue is open](https://github.com/pypa/pip/issues/4957).
522-
523519
You can then run the tests using
524520
```bash
525521
pytest tests --forked

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ The recommended and simplest way of installing `webviz-config` is to run
4747
pip install webviz-config
4848
```
4949

50+
> :warning: Unless you are using `pip` version `>=20.3` you should enable the new `pip`
51+
resolver when installing, i.e. `pip install --use-feature=2020-resolver webviz-config`.
52+
5053
If you want to develop `webviz-config` and install the latest source code manually you
5154
can do something along the lines of:
5255
can run

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def get_long_description() -> str:
2525
TESTS_REQUIRES = [
2626
"bandit",
2727
"black",
28+
"dash[testing]",
2829
"jsonschema",
2930
"mock",
3031
"mypy",

0 commit comments

Comments
 (0)