From e20cc79ffb5ba236ca9cf65cd98036bf4e6b86fd Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Wed, 14 Oct 2026 15:54:02 -0400 Subject: [PATCH] [COMPAT] Require Python 3.12 CI and the publish workflow already run only 3.12, and building from source already needs 3.11 (setup.py imports tomllib). README and AGENTS.md follow, and the cp310/cp311 NKI wheel sources go. --- AGENTS.md | 2 +- README.md | 2 +- pyproject.toml | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index dc61bac8..e501b7da 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -16,7 +16,7 @@ TileLens is a Python package with a TypeScript web UI. Core code lives in `tilel ## Coding Style & Naming Conventions -Use Python 3.10+ and TypeScript modules. Follow file-local style: 4-space indentation for Python and descriptive snake_case names for functions, variables, and test helpers. Python tests are discovered from `*.py`, classes ending in `Test`, and functions named `test_*`. Ruff is configured in `pyproject.toml` with `E731` ignored; run pre-commit when available. Keep generated package assets in sync when editing `frontend/`. +Use Python 3.12+ and TypeScript modules. Follow file-local style: 4-space indentation for Python and descriptive snake_case names for functions, variables, and test helpers. Python tests are discovered from `*.py`, classes ending in `Test`, and functions named `test_*`. Ruff is configured in `pyproject.toml` with `E731` ignored; run pre-commit when available. Keep generated package assets in sync when editing `frontend/`. ## Testing Guidelines diff --git a/README.md b/README.md index 0efc0527..5ece0aa2 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ TileLens helps developers inspect Triton kernels with visualization, profiling, ## Getting Started ### Prerequisites -- Python >= 3.10 +- Python >= 3.12 ### Installation of TileLens diff --git a/pyproject.toml b/pyproject.toml index 5b7e8b86..cd498f0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ authors = [ ] readme = "README.md" license = {text = "MIT"} -requires-python = ">=3.10" +requires-python = ">=3.12" classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", @@ -76,12 +76,8 @@ index-strategy = "unsafe-best-match" [tool.uv.sources] neuronx-cc = [ - {url = "https://pip.repos.neuron.amazonaws.com/neuronx-cc/neuronx_cc-2.22.12471.0%2Bb4a00d10-cp310-cp310-linux_x86_64.whl", marker = "python_version == '3.10'"}, - {url = "https://pip.repos.neuron.amazonaws.com/neuronx-cc/neuronx_cc-2.22.12471.0%2Bb4a00d10-cp311-cp311-linux_x86_64.whl", marker = "python_version == '3.11'"}, {url = "https://pip.repos.neuron.amazonaws.com/neuronx-cc/neuronx_cc-2.22.12471.0%2Bb4a00d10-cp312-cp312-linux_x86_64.whl", marker = "python_version == '3.12'"}, ] nki = [ - {url = "https://pip.repos.neuron.amazonaws.com/nki/nki-0.2.0%2Bg82fdb402-cp310-cp310-linux_x86_64.whl", marker = "python_version == '3.10'"}, - {url = "https://pip.repos.neuron.amazonaws.com/nki/nki-0.2.0%2Bg82fdb402-cp311-cp311-linux_x86_64.whl", marker = "python_version == '3.11'"}, {url = "https://pip.repos.neuron.amazonaws.com/nki/nki-0.2.0%2Bg82fdb402-cp312-cp312-linux_x86_64.whl", marker = "python_version == '3.12'"}, ]