Migrate from Poetry and pyenv to uv
This commit is contained in:
+4
-3
@@ -1,7 +1,9 @@
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from src.constants import VERSION
|
||||
|
||||
load_dotenv()
|
||||
@@ -52,8 +54,7 @@ if spec_path.exists():
|
||||
|
||||
if f"console={not console_mode}" in spec_content:
|
||||
new_spec_content = spec_content.replace(
|
||||
f"console={not console_mode}",
|
||||
f"console={console_mode}"
|
||||
f"console={not console_mode}", f"console={console_mode}"
|
||||
)
|
||||
with open(spec_path, "w", encoding="utf-8") as f:
|
||||
f.write(new_spec_content)
|
||||
@@ -63,4 +64,4 @@ if spec_path.exists():
|
||||
else:
|
||||
print(f"✗ {spec_filename} not found!")
|
||||
|
||||
print(f"{'-' * 50}\n")
|
||||
print(f"{'-' * 50}\n")
|
||||
|
||||
Reference in New Issue
Block a user