Skip to content

Commit

Permalink
release v0.6.0
Browse files Browse the repository at this point in the history
* fix parsing
  • Loading branch information
Borda committed Oct 28, 2021
1 parent 61e9c9c commit 6bcc8b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion torchmetrics/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.6.0rc1"
__version__ = "0.6.0"
__author__ = "PyTorchLightning et al."
__author_email__ = "[email protected]"
__license__ = "Apache-2.0"
Expand Down
5 changes: 3 additions & 2 deletions torchmetrics/setup_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bcc8b0

Please sign in to comment.