diff --git a/CHANGELOG.md b/CHANGELOG.md index a3bb255fbdb..c77f17bb0e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 **Note: we move fast, but still we preserve 0.1 version (one feature release) back compatibility.** -## [0.6.0] - 2021-10-DD +## [0.6.0] - 2021-10-28 ### Added diff --git a/torchmetrics/__about__.py b/torchmetrics/__about__.py index ed3caea89b2..c01d1134307 100644 --- a/torchmetrics/__about__.py +++ b/torchmetrics/__about__.py @@ -1,4 +1,4 @@ -__version__ = "0.6.0rc1" +__version__ = "0.6.0" __author__ = "PyTorchLightning et al." __author_email__ = "name@pytorchlightning.ai" __license__ = "Apache-2.0" diff --git a/torchmetrics/setup_tools.py b/torchmetrics/setup_tools.py index 68c361c60be..0739412de15 100644 --- a/torchmetrics/setup_tools.py +++ b/torchmetrics/setup_tools.py @@ -30,9 +30,10 @@ def _load_requirements(path_dir: str, file_name: str = "requirements.txt", comme for ln in lines: # filer all comments if comment_char in ln: - ln = ln[: ln.index(comment_char)].strip() + char_idx = min(ln.index(ch) for ch in comment_char) + ln = ln[:char_idx].strip() # skip directly installed dependencies - if ln.startswith("http") or ln.startswith("git") or ln.startswith("-r"): + if ln.startswith("http") or ln.startswith("git") or ln.startswith("-r") or "@" in ln: continue if ln: # if requirement is not empty reqs.append(ln)