wrencode 0.1.4.5__tar.gz → 0.1.4.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wrencode
3
- Version: 0.1.4.5
3
+ Version: 0.1.4.6
4
4
  Summary: A minimal agentic coding assistant in a single Python file
5
5
  Project-URL: Homepage, https://github.com/almostly/wrencode
6
6
  Project-URL: Repository, https://github.com/almostly/wrencode
@@ -53,6 +53,19 @@ import urllib.error
53
53
  import urllib.request
54
54
  from typing import Any, Callable, Optional
55
55
 
56
+ # The PyInstaller single-file binary ships no system CA trust store, so urllib's
57
+ # TLS verification fails out of the box ("CERTIFICATE_VERIFY_FAILED") on a clean
58
+ # machine. If certifi is bundled (it is in the binary build), point the SSL
59
+ # defaults at it before any request. Soft import keeps pip/uvx installs
60
+ # dependency-free; setdefault preserves any user-provided override.
61
+ try:
62
+ import certifi
63
+
64
+ os.environ.setdefault("SSL_CERT_FILE", certifi.where())
65
+ os.environ.setdefault("REQUESTS_CA_BUNDLE", certifi.where())
66
+ except ImportError:
67
+ pass
68
+
56
69
  # Load .env (next to this script, then the current directory); real env vars win.
57
70
  for _dir in (os.path.dirname(os.path.abspath(__file__)), os.getcwd()):
58
71
  _env_path = os.path.join(_dir, ".env")
@@ -74,7 +87,7 @@ for _dir in (os.path.dirname(os.path.abspath(__file__)), os.getcwd()):
74
87
  # -----------------------------------------------------------------------------------------------
75
88
  # Backend configuration
76
89
  # -----------------------------------------------------------------------------------------------
77
- WRENCODE_VERSION = "0.1.4.5"
90
+ WRENCODE_VERSION = "0.1.4.6"
78
91
 
79
92
  # Per-backend defaults. "kind" controls how a backend is treated:
80
93
  # api - hosted HTTP API, needs an API key
File without changes
File without changes
File without changes