Skip to content

Commit 93f6c4d

Browse files
committed
fix: fixes
1 parent 432d1c8 commit 93f6c4d

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ classifiers = [
2424
"Intended Audience :: Developers",
2525
"License :: OSI Approved :: MIT License",
2626
"Programming Language :: Python :: 3",
27-
"Programming Language :: Python :: 3.10",
28-
"Programming Language :: Python :: 3.11",
2927
"Programming Language :: Python :: 3.12",
3028
"Programming Language :: Python :: 3.13",
29+
"Programming Language :: Python :: 3.14",
3130
"Topic :: Software Development :: Documentation",
3231
"Topic :: Software Development :: Libraries :: Python Modules",
3332
]

supekku/cli/common_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ def test_resolves_backlog_item(
413413
assert ref.path == md
414414

415415
def test_raises_not_found_for_missing_backlog(self, tmp_path: Path) -> None:
416+
(tmp_path / SPEC_DRIVER_DIR).mkdir()
416417
with pytest.raises(ArtifactNotFoundError):
417418
resolve_artifact("issue", "ISSUE-999", tmp_path)
418419

supekku/cli/main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
import sys
66

7+
if sys.version_info < (3, 12): # noqa: UP036 — defensive guard for broken installs
8+
sys.exit(
9+
f"spec-driver requires Python >= 3.12 "
10+
f"(running {sys.version_info.major}.{sys.version_info.minor}). "
11+
f"Install with: uv tool install spec-driver --python 3.12"
12+
)
13+
714
import click
815
import typer
916

supekku/scripts/lib/memory/creation_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
@pytest.fixture()
2323
def memory_dir(tmp_path: Path) -> Path:
2424
"""Create a temporary memory directory with sample files."""
25+
(tmp_path / ".spec-driver").mkdir()
2526
mem_dir = tmp_path / MEMORY_DIR
2627
mem_dir.mkdir()
2728
return mem_dir
@@ -253,6 +254,7 @@ def test_custom_status(self, registry: MemoryRegistry) -> None:
253254
assert post["status"] == "draft"
254255

255256
def test_creates_directory_if_missing(self, tmp_path: Path) -> None:
257+
(tmp_path / ".spec-driver").mkdir()
256258
mem_dir = tmp_path / MEMORY_DIR
257259
reg = MemoryRegistry(root=tmp_path, directory=mem_dir)
258260
opts = MemoryCreationOptions(

supekku/scripts/lib/sync/adapters/go_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def test_generate_propagates_gomarkdoc_error(
319319
"internal": Path("/test/output/internal.md"),
320320
}
321321

322-
with pytest.raises(subprocess.CalledProcessError):
322+
with pytest.raises(RuntimeError, match="gomarkdoc failed"):
323323
self.adapter.generate(unit, variant_outputs=variant_outputs)
324324

325325

0 commit comments

Comments
 (0)