From 4a19a4c54371b2bab19ab1ddba139966d9317203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 24 Apr 2024 13:16:51 +0200 Subject: [PATCH] setup: Fix stylistic inconsistencies --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 433a329c..590b9471 100644 --- a/setup.py +++ b/setup.py @@ -80,14 +80,16 @@ def detect_version() -> str: pkg_info = SOURCE_ROOT / "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").split("\n") - if line.startswith("Version: ")][0].strip() + 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: releng_location = next(enumerate_releng_locations(), None) if releng_location is not None: sys.path.insert(0, str(releng_location.parent)) from releng.frida_version import detect + version = detect(SOURCE_ROOT).name.replace("-dev.", ".dev") else: version = "0.0.0"