Skip to content

Instantly share code, notes, and snippets.

View zanieb's full-sized avatar

Zanie Blue zanieb

View GitHub Profile
@zanieb
zanieb / example-ft.py
Created October 6, 2025 21:27
A simple example for demonstrating a free-threaded speedup
import time
from concurrent.futures import ThreadPoolExecutor
from random import Random
def worker(base, random):
acc = base * 2
for i in range(1000):
acc += i * (42 + random.randint(0, 100))
return acc
print('hello world')
@zanieb
zanieb / logs
Last active September 8, 2025 17:57
uv 15730
DEBUG uv 0.8.15 (8473ecba1 2025-09-03)
TRACE Found `pyproject.toml` at: `/Users/zb/workspace/uv/pyproject.toml`
DEBUG Project is contained in non-workspace project: `/Users/zb/workspace/uv`
DEBUG Found workspace root: `/Users/zb/workspace/uv/example`
TRACE Discovering workspace members for: `/Users/zb/workspace/uv/example`
DEBUG Adding root workspace member: `/Users/zb/workspace/uv/example`
DEBUG Reading Python requests from version file at `/Users/zb/workspace/uv/example/.python-version`
DEBUG Using Python request `3.13` from version file at `.python-version`
DEBUG Checking for Python environment at: `.venv`
TRACE Found cached interpreter info for Python 3.13.7, skipping query of: .venv/bin/python3
@zanieb
zanieb / uv.lock
Created July 26, 2025 02:44
`uv add torch` for Python 3.8
version = 1
revision = 2
requires-python = ">=3.8"
resolution-markers = [
"python_full_version >= '3.12'",
"python_full_version == '3.11.*'",
"python_full_version == '3.10.*'",
"python_full_version == '3.9.*'",
"python_full_version < '3.9'",
]
diff --git a/crates/uv/tests/it/lock.rs b/crates/uv/tests/it/lock.rs
index 5851022b8..540790fac 100644
--- a/crates/uv/tests/it/lock.rs
+++ b/crates/uv/tests/it/lock.rs
@@ -10033,6 +10033,156 @@ fn lock_find_links_http_wheel() -> Result<()> {
Ok(())
}
+#[test]
+fn lock_find_links_trailing_slash() -> Result<()> {
2025-06-27T00:26:17.6484422Z   stdout ───
2025-06-27T00:26:17.6484705Z
2025-06-27T00:26:17.6484827Z running 1 test
2025-06-27T00:26:17.6485057Z test export::pep_751_sdist_url ... FAILED
2025-06-27T00:26:17.6485592Z
2025-06-27T00:26:17.6485716Z failures:
2025-06-27T00:26:17.6485859Z
2025-06-27T00:26:17.6485973Z failures:
2025-06-27T00:26:17.6486178Z export::pep_751_sdist_url
2025-06-27T00:26:17.6486362Z
2025-06-21T14:15:18.6442132Z failures:
2025-06-21T14:15:18.6442351Z pip_uninstall::uninstall_duplicate_by_path
2025-06-21T14:15:18.6442562Z
2025-06-21T14:15:18.6443299Z test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 1700 filtered out; finished in 9.44s
2025-06-21T14:15:18.6443715Z 
2025-06-21T14:15:18.6443992Z   stderr ───
2025-06-21T14:15:18.6444203Z
2025-06-21T14:15:18.6444437Z ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Unfiltered output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2025-06-21T14:15:18.6444975Z ----- stdout -----
2025-06-21T14:15:18.6445381Z
-06-21T13:31:12.1205520Z failures:
2025-06-21T13:31:12.1205759Z pip_uninstall::uninstall_duplicate_by_path
2025-06-21T13:31:12.1205974Z
2025-06-21T13:31:12.1206230Z test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 1700 filtered out; finished in 87.29s
2025-06-21T13:31:12.1206622Z 
2025-06-21T13:31:12.1206907Z   stderr ───
2025-06-21T13:31:12.1207215Z
2025-06-21T13:31:12.1207449Z ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Unfiltered output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2025-06-21T13:31:12.1207740Z ----- stdout -----
2025-06-21T13:31:12.1207911Z
print("hello world")
"""
$ uvx [email protected] run get-uv-version.py
0.6.0
$ uvx [email protected] run get-uv-version.py
0.7.0
"""
import json
import os
import subprocess