Skip to content

Commit

Permalink
scripts: Fix the PKG-INFO code-path in version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Apr 23, 2024
1 parent d42d945 commit 1d6f42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def detect():
pkg_info = root_dir / "PKG-INFO"
in_source_package = pkg_info.exists()
if in_source_package:
version_line = [line for line in pkg_info.read_text(encoding="utf-8")
version_line = [line for line in pkg_info.read_text(encoding="utf-8").split("\n")
if line.startswith("Version: ")][0].strip()
version = version_line[9:]
else:
Expand Down

0 comments on commit 1d6f42e

Please sign in to comment.