chore: initial baseline with P0-safety .gitignore

This commit is contained in:
Simon
2026-06-14 16:49:18 +08:00
commit 63262292d7
510 changed files with 146008 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import sys
import subprocess
# Write Python info
with open(r"C:\Users\simon\wecom_it_smart_desk\backend\env_info.txt", "w") as f:
f.write(f"Python: {sys.version}\n")
f.write(f"Executable: {sys.executable}\n")
# Try to install packages
result = subprocess.run(
[sys.executable, "-m", "pip", "install", "pytest", "pytest-asyncio", "aiosqlite", "httpx"],
capture_output=True, text=True, timeout=120
)
f.write(f"\nInstall stdout:\n{result.stdout}\n")
f.write(f"\nInstall stderr:\n{result.stderr}\n")
f.write(f"\nInstall RC: {result.returncode}\n")
# Check what's installed
result2 = subprocess.run(
[sys.executable, "-m", "pip", "list"],
capture_output=True, text=True, timeout=30
)
f.write(f"\nInstalled packages:\n{result2.stdout}\n")