From 8f13b624227af7385768094165af7d641bfa2b65 Mon Sep 17 00:00:00 2001 From: Jirka Date: Tue, 28 Feb 2023 19:40:37 +0100 Subject: [PATCH 1/4] pkg: fix skip links --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index d73c0cf3f31..1ee3e2d65ec 100755 --- a/setup.py +++ b/setup.py @@ -78,6 +78,9 @@ def _parse_requirements(strs: Union[str, Iterable[str]]) -> Iterator[_Requiremen line += next(lines) except StopIteration: return + if "@" in line: + # skip lines with links like `pesq @ git+https://github.com/ludlows/python-pesq` + continue # If there's a pip argument, save it if line.startswith("--"): pip_argument = line From b5f346c4e11dbdf50411ea6c1a0c357035859de9 Mon Sep 17 00:00:00 2001 From: Jirka Date: Tue, 28 Feb 2023 19:45:23 +0100 Subject: [PATCH 2/4] https --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1ee3e2d65ec..0c63ade6bd5 100755 --- a/setup.py +++ b/setup.py @@ -78,7 +78,7 @@ def _parse_requirements(strs: Union[str, Iterable[str]]) -> Iterator[_Requiremen line += next(lines) except StopIteration: return - if "@" in line: + if "@" in line or re.search("https?://", line): # skip lines with links like `pesq @ git+https://github.com/ludlows/python-pesq` continue # If there's a pip argument, save it From dc622ed27bfdb83713b73dce23608242cafd0175 Mon Sep 17 00:00:00 2001 From: Jirka Date: Tue, 28 Feb 2023 19:58:16 +0100 Subject: [PATCH 3/4] fix badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 25e8822c73a..254bbdb6a8f 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ ______________________________________________________________________ ![Conda](https://img.shields.io/conda/dn/conda-forge/torchmetrics) [![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/Lightning-AI/metrics/blob/master/LICENSE) -[![CI testing - complete](https://github.com/Lightning-AI/metrics/actions/workflows/ci_test-full.yml/badge.svg?event=push)](https://github.com/Lightning-AI/metrics/actions/workflows/ci_test-full.yml) +[![CI testing - complete](https://github.com/Lightning-AI/metrics/actions/workflows/ci-tests-full.yml/badge.svg?event=push)](https://github.com/Lightning-AI/metrics/actions/workflows/ci-tests-full.yml) [![Build Status](https://dev.azure.com/Lightning-AI/Metrics/_apis/build/status/Lightning-AI.metrics?branchName=master)](https://dev.azure.com/Lightning-AI/Metrics/_build/latest?definitionId=3&branchName=master) [![codecov](https://codecov.io/gh/Lightning-AI/metrics/branch/master/graph/badge.svg?token=NER6LPI3HS)](https://codecov.io/gh/Lightning-AI/metrics) From 13c11be6cd2d0a08df26580b456f7f33bb09b080 Mon Sep 17 00:00:00 2001 From: Jirka Date: Tue, 28 Feb 2023 21:36:07 +0100 Subject: [PATCH 4/4] printf --- .azure/gpu-pipeline.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.azure/gpu-pipeline.yml b/.azure/gpu-pipeline.yml index b07ca430195..dd40baf7176 100644 --- a/.azure/gpu-pipeline.yml +++ b/.azure/gpu-pipeline.yml @@ -101,11 +101,13 @@ jobs: displayName: 'Sanity check' - bash: | + printf "cache location: $(TORCH_HOME)\n" + mkdir -p $(TORCH_HOME) # in case cache was void + ls -lh $(TORCH_HOME) printf "cache location: $(TRANSFORMERS_CACHE)\n" - # printf "hit the HF cache: $(variables.HF_CACHE_RESTORED)\n" mkdir -p $(TRANSFORMERS_CACHE) # in case cache was void - ls -lh $(TRANSFORMERS_CACHE) # show what was restored... - displayName: 'Show HF cache' + ls -lh $(TRANSFORMERS_CACHE) + displayName: 'Show caches' - bash: python -m pytest torchmetrics --timeout=180 --durations=50 env: