Skip to content

Commit ea8a1fb

Browse files
authored
Merge pull request #621 from simvue-io/hotfix/fix-wrong-file-open-type
Fix incorrect file open type when uploading `requirements.txt`
2 parents 0c88b62 + f6c099b commit ea8a1fb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Change log
22

3+
## Unreleased
4+
* Fixed bug with `requirements.txt` metadata read.
35
## [v1.1.2](https://github.com/simvue-io/client/releases/tag/v1.1.2) - 2024-11-06
46

57
* Fix bug in offline mode directory retrieval.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "simvue"
3-
version = "1.1.2"
3+
version = "1.1.3"
44
description = "Simulation tracking and monitoring"
55
authors = ["Simvue Development Team <[email protected]>"]
66
license = "Apache v2"

simvue/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _python_env(repository: pathlib.Path) -> dict[str, typing.Any]:
8282
req_meta: dict[str, str] = {}
8383

8484
if (reqfile := pathlib.Path(repository).joinpath("requirements.txt")).exists():
85-
with reqfile.open("w") as in_req:
85+
with reqfile.open() as in_req:
8686
requirement_lines = in_req.readlines()
8787
req_meta = {}
8888

0 commit comments

Comments
 (0)