Skip to content

Commit 915addc

Browse files
committed
Improve build workflow
1 parent ed1e9ec commit 915addc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def main(args: Dict[str, Union[bool, str]]):
1919
os.chdir(HERE)
2020

2121
version = args[build_utils.FLAG_VERSION]
22-
if args[build_utils.FLAG_VERSION]:
22+
23+
if version:
2324
# Replace version in about.py
2425
with open(os.path.join(HERE, f"src/{MAIN_PACKAGE}/_about.py"), "r+") as f:
2526
data = f.read()

0 commit comments

Comments
 (0)