evo-cli 0.36.0__tar.gz → 0.36.2__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.
Files changed (156) hide show
  1. {evo_cli-0.36.0 → evo_cli-0.36.2}/PKG-INFO +1 -1
  2. evo_cli-0.36.2/evo_cli/VERSION +1 -0
  3. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/_spoofdpi.py +8 -5
  4. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/update.py +31 -2
  5. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli.egg-info/PKG-INFO +1 -1
  6. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_route.py +1 -1
  7. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_update.py +31 -2
  8. evo_cli-0.36.0/evo_cli/VERSION +0 -1
  9. {evo_cli-0.36.0 → evo_cli-0.36.2}/Containerfile +0 -0
  10. {evo_cli-0.36.0 → evo_cli-0.36.2}/HISTORY.md +0 -0
  11. {evo_cli-0.36.0 → evo_cli-0.36.2}/LICENSE +0 -0
  12. {evo_cli-0.36.0 → evo_cli-0.36.2}/MANIFEST.in +0 -0
  13. {evo_cli-0.36.0 → evo_cli-0.36.2}/README.md +0 -0
  14. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/__init__.py +0 -0
  15. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/__main__.py +0 -0
  16. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/base.py +0 -0
  17. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/cli.py +0 -0
  18. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/__init__.py +0 -0
  19. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/agent_toy.py +0 -0
  20. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/claude_code.py +0 -0
  21. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/cloudflare.py +0 -0
  22. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/cred.py +0 -0
  23. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/download.py +0 -0
  24. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/fix_claude.py +0 -0
  25. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/gdrive.py +0 -0
  26. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/gh.py +0 -0
  27. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/__init__.py +0 -0
  28. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/_dag.py +0 -0
  29. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/_git.py +0 -0
  30. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/_hub.py +0 -0
  31. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/_mirror.py +0 -0
  32. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/_model.py +0 -0
  33. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/_mutate.py +0 -0
  34. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/_paths.py +0 -0
  35. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/_render.py +0 -0
  36. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/_server.py +0 -0
  37. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/check.py +0 -0
  38. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/clone.py +0 -0
  39. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/edit.py +0 -0
  40. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/pull.py +0 -0
  41. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/serve.py +0 -0
  42. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/show.py +0 -0
  43. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/views.py +0 -0
  44. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/index-Cs7hXRPJ.css +0 -0
  45. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/index-CuNOlaH7.js +0 -0
  46. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  47. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  48. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  49. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  50. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  51. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  52. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  53. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  54. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  55. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  56. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  57. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  58. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/harness/web/index.html +0 -0
  59. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/hwid.py +0 -0
  60. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/hwid_reset.py +0 -0
  61. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/image.py +0 -0
  62. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/localproxy.py +0 -0
  63. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/mcp.py +0 -0
  64. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/miniconda.py +0 -0
  65. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/netcheck.py +0 -0
  66. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/ngrok.py +0 -0
  67. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/opencode.py +0 -0
  68. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/openvpn.py +0 -0
  69. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/plantuml.py +0 -0
  70. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/__init__.py +0 -0
  71. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/_dns.py +0 -0
  72. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/_dpi.py +0 -0
  73. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/_hosts.py +0 -0
  74. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/_page.py +0 -0
  75. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/_probe.py +0 -0
  76. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/check.py +0 -0
  77. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/fix.py +0 -0
  78. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/probe.py +0 -0
  79. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/route/status.py +0 -0
  80. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/serp.py +0 -0
  81. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/site2s.py +0 -0
  82. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/ssh.py +0 -0
  83. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/storage.py +0 -0
  84. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/sysmon.py +0 -0
  85. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/tts.py +0 -0
  86. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/commands/wifi.py +0 -0
  87. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/console.py +0 -0
  88. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/credentials/__init__.py +0 -0
  89. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/credentials/doctor.py +0 -0
  90. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/credentials/google_oauth.py +0 -0
  91. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/credentials/migrate.py +0 -0
  92. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/credentials/oauth_flow.py +0 -0
  93. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/credentials/registry.py +0 -0
  94. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/credentials/store.py +0 -0
  95. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/credentials/sync.py +0 -0
  96. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/imaging/__init__.py +0 -0
  97. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/imaging/align.py +0 -0
  98. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/imaging/core.py +0 -0
  99. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/imaging/creds.py +0 -0
  100. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/imaging/errors.py +0 -0
  101. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/imaging/gemini.py +0 -0
  102. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/imaging/ncnn.py +0 -0
  103. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/mcp_registry.py +0 -0
  104. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/openvpn.py +0 -0
  105. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/serp/__init__.py +0 -0
  106. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/serp/client.py +0 -0
  107. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/serp/creds.py +0 -0
  108. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/serp/errors.py +0 -0
  109. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/serp/install.py +0 -0
  110. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/serp/render.py +0 -0
  111. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/__init__.py +0 -0
  112. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/chunking.py +0 -0
  113. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/core.py +0 -0
  114. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/creds.py +0 -0
  115. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/errors.py +0 -0
  116. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/gemini.py +0 -0
  117. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/http.py +0 -0
  118. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/openai.py +0 -0
  119. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/player.py +0 -0
  120. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli/tts/vbee.py +0 -0
  121. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli.egg-info/SOURCES.txt +0 -0
  122. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli.egg-info/dependency_links.txt +0 -0
  123. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli.egg-info/entry_points.txt +0 -0
  124. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli.egg-info/requires.txt +0 -0
  125. {evo_cli-0.36.0 → evo_cli-0.36.2}/evo_cli.egg-info/top_level.txt +0 -0
  126. {evo_cli-0.36.0 → evo_cli-0.36.2}/pyproject.toml +0 -0
  127. {evo_cli-0.36.0 → evo_cli-0.36.2}/setup.cfg +0 -0
  128. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/__init__.py +0 -0
  129. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/fake_evo_agents.py +0 -0
  130. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/fixtures/hub/contract-0.2.0.json +0 -0
  131. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/fixtures/hub/mirror-demo.yaml +0 -0
  132. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_agent_toy.py +0 -0
  133. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_claude_code.py +0 -0
  134. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_cli.py +0 -0
  135. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_console.py +0 -0
  136. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_cred.py +0 -0
  137. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_download.py +0 -0
  138. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_fix_claude.py +0 -0
  139. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_gdrive.py +0 -0
  140. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_gh.py +0 -0
  141. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_harness.py +0 -0
  142. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_harness_clone.py +0 -0
  143. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_harness_dag.py +0 -0
  144. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_harness_hub.py +0 -0
  145. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_harness_show.py +0 -0
  146. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_image.py +0 -0
  147. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_mcp.py +0 -0
  148. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_ngrok.py +0 -0
  149. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_opencode.py +0 -0
  150. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_openvpn.py +0 -0
  151. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_plantuml.py +0 -0
  152. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_serp.py +0 -0
  153. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_storage.py +0 -0
  154. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_sysmon.py +0 -0
  155. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_tts.py +0 -0
  156. {evo_cli-0.36.0 → evo_cli-0.36.2}/tests/test_wifi.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: evo_cli
3
- Version: 0.36.0
3
+ Version: 0.36.2
4
4
  Summary: Evolution CLI - a developer toolbox for setting up dev machines
5
5
  Author: maycuatroi
6
6
  Project-URL: Homepage, https://github.com/maycuatroi/evo-cli
@@ -0,0 +1 @@
1
+ 0.36.2
@@ -26,10 +26,13 @@ LISTEN_HOST = "127.0.0.1"
26
26
  # Off 8080, where development servers live.
27
27
  LISTEN_PORT = 18080
28
28
 
29
- # `first-byte` cuts the TLS record header off the rest of the ClientHello, and the
30
- # filter does not put the two back together. SpoofDPI's default `sni` split, which
31
- # cuts inside the server name, still gets the handshake reset (medium.com, 2026-10).
32
- SPLIT_MODE = "first-byte"
29
+ # `chunk` cuts the whole ClientHello into small pieces. SpoofDPI's default `sni`
30
+ # split, which cuts inside the server name, gets the handshake reset (medium.com,
31
+ # 2026-10), and since 2026-11 so does `first-byte`, which only cuts the record
32
+ # header off (www.youtube.com, store.steampowered.com). Chunks of 1 to 64 bytes
33
+ # got through, 128 did not, so this keeps well under that.
34
+ SPLIT_MODE = "chunk"
35
+ CHUNK_SIZE = 16
33
36
 
34
37
  CONFIG = f"""# Written by `evo route open`; the hosts it opened are listed in hosts.txt.
35
38
  [dns]
@@ -43,7 +46,7 @@ name = "evo route open"
43
46
  priority = 50
44
47
  match = {{ domains = ["file:hosts.txt"] }}
45
48
  dns = {{ mode = "https", cache = true }}
46
- https = {{ skip = false, split-mode = "{SPLIT_MODE}" }}
49
+ https = {{ skip = false, split-mode = "{SPLIT_MODE}", chunk-size = {CHUNK_SIZE} }}
47
50
  """
48
51
 
49
52
  # networksetup names both proxies by these words: -getwebproxy, -setsecurewebproxystate, ...
@@ -25,6 +25,7 @@ VERSION_RE = re.compile(r"^v?(\d+(?:\.\d+)*)(?:[-_.]?(dev|alpha|a|beta|b|rc|c|pr
25
25
  PRE_RANK = {"dev": -4, "alpha": -3, "a": -3, "beta": -2, "b": -2, "pre": -1, "rc": -1, "c": -1}
26
26
 
27
27
  EXACT_PIN_RE = re.compile(r"^===?\s*([^\s,*]+)$")
28
+ CLAUSE_RE = re.compile(r"^(===|==|!=|~=|>=|<=|>|<)\s*([^\s*]+)$")
28
29
  PLAIN_RECEIPT_KEYS = {"requirements", "python", "entrypoints", "options"}
29
30
  PLAIN_REQUIREMENT_KEYS = {"name", "extras", "specifier"}
30
31
 
@@ -178,6 +179,32 @@ def exact_pin(requirement):
178
179
  return match.group(1) if match else None
179
180
 
180
181
 
182
+ def admits(specifier, version):
183
+ """Whether every clause of ``specifier`` lets ``version`` in; None for a clause this cannot read (wildcards)."""
184
+ target = parse_version(version)
185
+ for clause in filter(None, (part.strip() for part in str(specifier).split(","))):
186
+ match = CLAUSE_RE.match(clause)
187
+ if not match:
188
+ return None
189
+ op, bound = match.group(1), parse_version(match.group(2))
190
+ if op == "~=":
191
+ prefix = bound[0][:-1]
192
+ ok = target >= bound and target[0][: len(prefix)] == prefix
193
+ else:
194
+ ok = {
195
+ "==": target == bound,
196
+ "===": target == bound,
197
+ "!=": target != bound,
198
+ ">=": target >= bound,
199
+ "<=": target <= bound,
200
+ ">": target > bound,
201
+ "<": target < bound,
202
+ }[op]
203
+ if not ok:
204
+ return False
205
+ return True
206
+
207
+
181
208
  def requirement_text(requirement, specifier):
182
209
  extras = requirement.get("extras") or []
183
210
  name = requirement["name"] + (f"[{','.join(extras)}]" if extras else "")
@@ -232,7 +259,9 @@ def build_commands(install, latest, allow_pre):
232
259
  reinstall = uv_reinstall_command(install["location"], latest, allow_pre)
233
260
  if reinstall:
234
261
  return [reinstall]
235
- cmd = ["uv", "tool", "upgrade", target]
262
+ # Right after a release uv still answers from its cached index and finds nothing to upgrade.
263
+ # `tool upgrade` has no --refresh-package; --reinstall-package implies it.
264
+ cmd = ["uv", "tool", "upgrade", "--reinstall-package", TOOL_NAME, target]
236
265
  if allow_pre:
237
266
  cmd.append("--prerelease=allow")
238
267
  return [cmd]
@@ -281,7 +310,7 @@ def stale_hint(install, latest):
281
310
  _, requirement = uv_receipt(location)
282
311
  specifier = (requirement or {}).get("specifier")
283
312
  fix = f"uv tool install --force --refresh-package {TOOL_NAME} '{TOOL_NAME}>={latest}'"
284
- if specifier:
313
+ if specifier and admits(specifier, latest) is not True:
285
314
  receipt = Path(location) / "uv-receipt.toml"
286
315
  return (
287
316
  f"{receipt} pins {TOOL_NAME}{specifier}, which `uv tool upgrade` keeps. "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: evo_cli
3
- Version: 0.36.0
3
+ Version: 0.36.2
4
4
  Summary: Evolution CLI - a developer toolbox for setting up dev machines
5
5
  Author: maycuatroi
6
6
  Project-URL: Homepage, https://github.com/maycuatroi/evo-cli
@@ -272,7 +272,7 @@ def test_spoofdpi_config_bypasses_only_the_opened_hosts():
272
272
  assert 'mode = "system"' in _spoofdpi.CONFIG
273
273
  assert "skip = true" in _spoofdpi.CONFIG
274
274
  assert '"file:hosts.txt"' in _spoofdpi.CONFIG
275
- assert 'split-mode = "first-byte"' in _spoofdpi.CONFIG
275
+ assert 'split-mode = "chunk", chunk-size = 16' in _spoofdpi.CONFIG
276
276
 
277
277
 
278
278
  def test_network_services_skip_the_header_and_disabled_ones(monkeypatch):
@@ -6,6 +6,8 @@ from click.testing import CliRunner
6
6
  from evo_cli.cli import cli
7
7
  from evo_cli.commands import update as update_command
8
8
 
9
+ UV_UPGRADE = ["uv", "tool", "upgrade", "--reinstall-package", "evo-cli", "evo_cli"]
10
+
9
11
 
10
12
  def _result(returncode=0, stdout="", stderr=""):
11
13
  return subprocess.CompletedProcess([], returncode, stdout, stderr)
@@ -189,7 +191,7 @@ def test_uv_upgrade_held_by_a_pin_it_cannot_rebuild_fails_with_the_fix(monkeypat
189
191
  output = _flat(result.output)
190
192
 
191
193
  assert result.exit_code == 1
192
- assert ran == [["uv", "tool", "upgrade", "evo_cli"]]
194
+ assert ran == [UV_UPGRADE]
193
195
  assert "evo updated" not in result.output
194
196
  assert "evo is still at 0.31.0, not 0.31.1" in output
195
197
  assert "pins evo-cli==0.31.0" in output
@@ -205,10 +207,37 @@ def test_uv_upgrade_without_a_pin_skips_the_reinstall(monkeypatch, tmp_path):
205
207
  result = CliRunner().invoke(cli, ["update"])
206
208
 
207
209
  assert result.exit_code == 0, result.output
208
- assert ran == [["uv", "tool", "upgrade", "evo_cli"]]
210
+ assert ran == [UV_UPGRADE]
209
211
  assert "evo updated to 0.31.1" in result.output
210
212
 
211
213
 
214
+ def test_uv_upgrade_held_by_a_stale_index_does_not_blame_a_floor(monkeypatch, tmp_path):
215
+ """A receipt's `>=` floor lets the release in, so the cached index is what held it back."""
216
+ _stub_pypi(monkeypatch, ["0.36.0", "0.36.1"])
217
+ monkeypatch.setattr(update_command, "__version__", "0.36.0")
218
+ _uv_install(monkeypatch, tmp_path, '[tool]\nrequirements = [{ name = "evo-cli", specifier = ">=0.31.2" }]\n')
219
+ ran = _stub_installer(monkeypatch, "0.36.0")
220
+
221
+ result = CliRunner().invoke(cli, ["update"])
222
+ output = _flat(result.output)
223
+
224
+ assert result.exit_code == 1
225
+ assert ran == [UV_UPGRADE]
226
+ assert "pins" not in output
227
+ assert "cached package index" in output
228
+ assert "uv tool install --force --refresh-package evo-cli 'evo-cli>=0.36.1'" in output
229
+
230
+
231
+ def test_admits_reads_each_clause_of_a_specifier():
232
+ assert update_command.admits(">=0.31.2", "0.36.1") is True
233
+ assert update_command.admits(">=0.31.2,<0.36", "0.36.1") is False
234
+ assert update_command.admits("==0.36.0", "0.36.1") is False
235
+ assert update_command.admits("!=0.36.0", "0.36.1") is True
236
+ assert update_command.admits("~=0.36.0", "0.36.1") is True
237
+ assert update_command.admits("~=0.35.0", "0.36.1") is False
238
+ assert update_command.admits("==0.36.*", "0.36.1") is None
239
+
240
+
212
241
  def test_editable_update_pulls_and_reports_head(monkeypatch, tmp_path):
213
242
  monkeypatch.setattr(update_command, "fetch_pypi", lambda package, timeout: _pypi(["0.11.3"]))
214
243
  monkeypatch.setattr(update_command, "detect_install", lambda: {"mode": "editable", "location": tmp_path})
@@ -1 +0,0 @@
1
- 0.36.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes