Skip to content

Commit c2435ee

Browse files
committed
--upgrade
1 parent 84e3562 commit c2435ee

File tree

20 files changed

+40
-41
lines changed

20 files changed

+40
-41
lines changed

.azure-pipelines/gpu-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
python -c "fname = 'requirements/strategies.txt' ; lines = [line for line in open(fname).readlines() if 'horovod' not in line] ; open(fname, 'w').writelines(lines)"
5757
CUDA_VERSION_MM=$(python -c "import torch ; print(''.join(map(str, torch.version.cuda.split('.')[:2])))")
5858
pip install "bagua-cuda$CUDA_VERSION_MM>=0.9.0"
59-
pip install . --requirement requirements/devel.txt --upgrade-strategy eager
60-
pip install . --requirement requirements/strategies.txt --upgrade-strategy eager
59+
pip install . --requirement requirements/devel.txt -U --upgrade-strategy eager
60+
pip install . --requirement requirements/strategies.txt -U --upgrade-strategy eager
6161
pip list
6262
displayName: 'Install dependencies'
6363

.azure-pipelines/hpu-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
displayName: 'Instance HW info'
3434
3535
- bash: |
36-
pip install . --requirement requirements/extra.txt --upgrade-strategy eager
37-
pip install . --requirement requirements/test.txt --upgrade-strategy eager
36+
pip install . --requirement requirements/extra.txt -U --upgrade-strategy eager
37+
pip install . --requirement requirements/test.txt -U --upgrade-strategy eager
3838
displayName: 'Install dependencies'
3939
4040
- bash: |

.azure-pipelines/ipu-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
export GIT_TERMINAL_PROMPT=1
5656
python ./requirements/adjust-versions.py requirements/extra.txt
5757
python ./requirements/adjust-versions.py requirements/examples.txt
58-
pip install . --requirement ./requirements/devel.txt --upgrade-strategy eager
58+
pip install . --requirement ./requirements/devel.txt -U --upgrade-strategy eager
5959
pip list
6060
displayName: 'Install dependencies'
6161

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ references:
4040
# the image uses python 2.7 by default, force a different version
4141
pyenv global 3.7.3
4242
python --version
43-
pip install -r requirements/docs.txt --upgrade-strategy eager
43+
pip install -r requirements/docs.txt -U --upgrade-strategy eager
4444
pip list
4545
cd docs
4646
make clean

.github/workflows/ci_pkg-install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
if: runner.os == 'windows'
4747
run: |
4848
# this is just a hotfix because of Win cannot install it directly
49-
pip install -r requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --upgrade-strategy eager
49+
pip install -r requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html -U --upgrade-strategy eager
5050
5151
- name: Install | Uninstall package - archive
5252
run: |

.github/workflows/ci_test-base.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
python --version
5454
python -m pip install --upgrade --user pip
5555
pip --version
56-
pip install -r requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --upgrade --upgrade-strategy eager
57-
pip install -r requirements/test.txt --upgrade-strategy eager
56+
pip install -r requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html -U --upgrade-strategy eager
57+
pip install -r requirements/test.txt -U --upgrade-strategy eager
5858
pip list
5959
shell: bash
6060

.github/workflows/ci_test-conda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
# adjust versions according installed Torch version
4848
python ./requirements/adjust-versions.py requirements/extra.txt
4949
python ./requirements/adjust-versions.py requirements/examples.txt
50-
pip install -r requirements/devel.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --upgrade-strategy eager
51-
pip install -r requirements/strategies.txt --upgrade-strategy eager
50+
pip install -r requirements/devel.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html -U --upgrade-strategy eager
51+
pip install -r requirements/strategies.txt -U --upgrade-strategy eager
5252
# set a per-test timeout of 2.5 minutes to fail sooner; this aids with hanging tests
5353
pip install pytest-timeout
5454
pip list

.github/workflows/ci_test-full.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,19 @@ jobs:
8989
run: |
9090
flag=$(python -c "print('--pre' if '${{matrix.release}}' == 'pre' else '')" 2>&1)
9191
url=$(python -c "print('test/cpu/torch_test.html' if '${{matrix.release}}' == 'pre' else 'cpu/torch_stable.html')" 2>&1)
92-
pip install -r requirements.txt --upgrade $flag --upgrade-strategy eager --find-links "https://download.pytorch.org/whl/${url}"
92+
pip install -r requirements.txt $flag -U --upgrade-strategy eager --find-links "https://download.pytorch.org/whl/${url}"
9393
# adjust versions according installed Torch version
9494
python ./requirements/adjust-versions.py requirements/examples.txt
95-
pip install -r requirements/examples.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --upgrade --upgrade-strategy eager
96-
pip install -r requirements/test.txt --upgrade --upgrade-strategy eager
95+
pip install -r requirements/examples.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html -U --upgrade-strategy eager
96+
pip install -r requirements/test.txt -U --upgrade-strategy eager
9797
pip list
9898
shell: bash
9999

100100
- name: Install extra dependencies
101101
run: |
102102
# adjust versions according installed Torch version
103103
python ./requirements/adjust-versions.py requirements/extra.txt
104-
pip install --requirement ./requirements/extra.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --upgrade --upgrade-strategy eager
104+
pip install --requirement ./requirements/extra.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html -U --upgrade-strategy eager
105105
pip list
106106
shell: bash
107107

@@ -116,7 +116,7 @@ jobs:
116116
if [[ $HOROVOD_BUILT != "SUCCESS" ]]; then
117117
pip uninstall -y horovod
118118
grep "horovod" requirements/strategies.txt > requirements/horovod.txt
119-
pip install --no-cache-dir -r requirements/horovod.txt --upgrade-strategy eager
119+
pip install --no-cache-dir -r requirements/horovod.txt -U --upgrade-strategy eager
120120
fi
121121
horovodrun --check-build
122122
python -c "import horovod.torch"

.github/workflows/ci_test-slow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
run: |
5050
# adjust versions according installed Torch version
5151
python ./requirements/adjust-versions.py requirements.txt ${{ matrix.pytorch-version }}
52-
pip install -r requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --upgrade --upgrade-strategy eager
53-
pip install -r requirements/test.txt --upgrade-strategy eager
52+
pip install -r requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html -U --upgrade-strategy eager
53+
pip install -r requirements/test.txt -U --upgrade-strategy eager
5454
pip list
5555
shell: bash
5656

.github/workflows/code-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: |
3434
pip install torch==1.11 --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
3535
python ./requirements/adjust-versions.py requirements/extra.txt
36-
pip install '.[dev]' --upgrade-strategy eager
36+
pip install '.[dev]' -U --upgrade-strategy eager
3737
pip list
3838
3939
- name: Type check

0 commit comments

Comments
 (0)