verifiers 0.2.1.dev23__py3-none-any.whl → 0.2.1.dev26__py3-none-any.whl

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.
@@ -19,13 +19,10 @@ from verifiers.v1.utils.aio import run_shielded
19
19
 
20
20
  logger = logging.getLogger(__name__)
21
21
 
22
- # Ensure `uv` is available to run our PEP 723 scripts (the harness + tool servers): use it
23
- # if present, else bootstrap it — via pip; else via the standalone installer (curl/wget),
24
- # first installing curl + CA certs from the distro package manager when the image has no
25
- # downloader at all (bare task images, e.g. Harbor's). It installs to ~/.local/bin, which
26
- # we prepend to PATH so the provisioning command finds it; uv resolves each script's inline
27
- # deps into its own cache, isolated from the eval process. (Needs network + one of
28
- # uv / pip / curl / wget / apt-get / apk.)
22
+ # Ensure the latest `uv` is available for our PEP 723 scripts: prefer pip on Python images,
23
+ # then fall back to the standalone installer (curl/wget), installing curl + CA certs when a
24
+ # bare image has no downloader. Both paths install to ~/.local/bin, which we prepend to PATH.
25
+ # (Needs network + one of pip / curl / wget / apt-get / apk.)
29
26
  _INSTALL_CURL = ( # only when the image has no downloader; needs a known package manager
30
27
  "{ command -v curl >/dev/null 2>&1 || command -v wget >/dev/null 2>&1; } "
31
28
  "|| { apt-get update -qq && apt-get install -y -qq curl ca-certificates; } "
@@ -37,12 +34,8 @@ _DOWNLOAD_UV = (
37
34
  )
38
35
  _ENSURE_UV = (
39
36
  'export PATH="$HOME/.local/bin:$PATH" UV_INSTALL_DIR="$HOME/.local/bin"; '
40
- # Always install the latest uv into $HOME/.local/bin (ahead of any image uv on PATH) rather
41
- # than reusing whatever the image ships: base images carry wildly varying uvs (too old for the
42
- # `uv sync --script` / `uv python find --script` that prepare_uv_script runs, or stale/shadowed
43
- # on PATH). Installing fresh sidesteps all version probing. Falls back to pip when no downloader.
44
- f"{{ {_INSTALL_CURL}; {_DOWNLOAD_UV}; }} "
45
- "|| pip install -q -U uv 2>/dev/null"
37
+ "pip install -q -U --user uv 2>/dev/null "
38
+ f"|| {{ {_INSTALL_CURL}; {_DOWNLOAD_UV}; }}"
46
39
  )
47
40
 
48
41
  # The single port a self-publishing runtime (modal/prime) forwards to a public URL for a server
@@ -187,12 +180,10 @@ class Runtime(ABC):
187
180
  if digest not in self._uv_interpreters:
188
181
  tmp = f"{path}.{uuid.uuid4().hex}.tmp"
189
182
  await self.write(tmp, data)
190
- await self.run(
191
- ["sh", "-c", f"mv -f {shlex.quote(tmp)} {shlex.quote(path)}"],
192
- {},
193
- )
194
183
  command = (
195
- f"{_ENSURE_UV}; uv sync --script {shlex.quote(path)} -q --no-config "
184
+ f"mv -f {shlex.quote(tmp)} {shlex.quote(path)} "
185
+ f"&& {{ {_ENSURE_UV}; }} "
186
+ f"&& uv sync --script {shlex.quote(path)} -q --no-config "
196
187
  f"&& uv python find --script {shlex.quote(path)} --no-config"
197
188
  )
198
189
  result = await self.run(["sh", "-c", command], env or {})
@@ -138,7 +138,7 @@ class PrimeRuntime(Runtime):
138
138
  logger.info(
139
139
  "prime: sandbox %s up (image=%s)", self.info.id, self.config.image
140
140
  )
141
- await self._client.run_background_job(
141
+ await self._client.execute_command(
142
142
  self.info.id, f"mkdir -p {shlex.quote(self.config.workdir)}"
143
143
  )
144
144
  except (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: verifiers
3
- Version: 0.2.1.dev23
3
+ Version: 0.2.1.dev26
4
4
  Summary: Verifiers: Environments for LLM Reinforcement Learning
5
5
  Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
6
6
  Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
@@ -296,11 +296,11 @@ verifiers/v1/mcp/server.py,sha256=MXEW6w72TkLa3iEPqrWgxQSlOBR-ostjImt5LNMtVo0,10
296
296
  verifiers/v1/mcp/toolset.py,sha256=tSPXgTNREZyaeCnoFVnDfXxFAj_pStZMPUIgyPrY_Dk,996
297
297
  verifiers/v1/mcp/user.py,sha256=u_2KMRtNfg6WkwOCRLpR7j4ziFCUzGb1t6SomTbbu4Q,1591
298
298
  verifiers/v1/runtimes/__init__.py,sha256=L8BCIcL9InpQi3ip2-WoZKyO6FHXLnKBoYFWexEpI8Y,2138
299
- verifiers/v1/runtimes/base.py,sha256=hRXl5e9LlQkjMB8VjBeICVfoVFM7jZeCeU3swbMZ_7A,11813
299
+ verifiers/v1/runtimes/base.py,sha256=rp7wzehr6VGkB0unu4tflAE9EVOP7PlS5aEMbDeovdc,11123
300
300
  verifiers/v1/runtimes/docker.py,sha256=c96-HxwuH-aQY_mFYbFTb6TgLInUDuMTgY7z9T6DB3k,7414
301
301
  verifiers/v1/runtimes/limiters.py,sha256=LUcsvyvDkjgdDwMgx4QUduYHHPsgQJ_tgCVCV7L79Hs,2719
302
302
  verifiers/v1/runtimes/modal.py,sha256=a4NghySLu0k_YGqi59OlZdA6AqLYU96KNY2w_FExpTw,8788
303
- verifiers/v1/runtimes/prime.py,sha256=vnx9agHjOUxUInL99bTA9wgFAgyRdc59U6iAOmgMJDg,11547
303
+ verifiers/v1/runtimes/prime.py,sha256=m72TYumj9XmRJdDs_qmr4s77DZbpOFC1rB8G7dDwKKw,11544
304
304
  verifiers/v1/runtimes/subprocess.py,sha256=blhgfr_0YBzfxUNqiXCwMjdEUWwYW3ybebn70JvpzSI,4581
305
305
  verifiers/v1/serve/__init__.py,sha256=WUv1gllOdxoFDiwZRK7llYjcxljlbcyKevzu0trLuUw,708
306
306
  verifiers/v1/serve/client.py,sha256=ZI_q42DX66lS9yLrrxutyWyRACIHeVZ6iekJfRRk7iA,6590
@@ -324,8 +324,8 @@ verifiers/v1/utils/interrupt.py,sha256=F-KKhc5ndPJJfhd3SuMqyqhXhA32FhCRy5KWFJpEo
324
324
  verifiers/v1/utils/logging.py,sha256=OcMHA6NsYux3oIzjPuI95rDWmFBHNcHDjZeNIhXTX-Y,2084
325
325
  verifiers/v1/utils/memory.py,sha256=ZkIvGk6uITAH5sKon65LifKPbvZr8mJ__PVc23FZpOQ,1835
326
326
  verifiers/v1/utils/sampling.py,sha256=JczGzBn6s3wsIrSY2Hy3hE8m6NreNgsNzhSjDikQqX0,1037
327
- verifiers-0.2.1.dev23.dist-info/METADATA,sha256=4H001ZIFztJIk0rF4_t--7xp2h7MVN4Elrf2hafoLFo,5136
328
- verifiers-0.2.1.dev23.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
329
- verifiers-0.2.1.dev23.dist-info/entry_points.txt,sha256=dF82JUYEFslR1AOW8LZfuBWeZeQoyX4wCRrduklg8-I,551
330
- verifiers-0.2.1.dev23.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
331
- verifiers-0.2.1.dev23.dist-info/RECORD,,
327
+ verifiers-0.2.1.dev26.dist-info/METADATA,sha256=69g7DZC5s7QDH--eqWNvjqAyV-7pGPmOP5CrT0UoFO8,5136
328
+ verifiers-0.2.1.dev26.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
329
+ verifiers-0.2.1.dev26.dist-info/entry_points.txt,sha256=dF82JUYEFslR1AOW8LZfuBWeZeQoyX4wCRrduklg8-I,551
330
+ verifiers-0.2.1.dev26.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
331
+ verifiers-0.2.1.dev26.dist-info/RECORD,,