specfuse 0.2.2__tar.gz → 0.2.3__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.
- {specfuse-0.2.2/specfuse.egg-info → specfuse-0.2.3}/PKG-INFO +1 -1
- {specfuse-0.2.2 → specfuse-0.2.3}/pyproject.toml +9 -1
- {specfuse-0.2.2 → specfuse-0.2.3}/specfuse/cli.py +1 -1
- {specfuse-0.2.2 → specfuse-0.2.3/specfuse.egg-info}/PKG-INFO +1 -1
- {specfuse-0.2.2 → specfuse-0.2.3}/specfuse.egg-info/SOURCES.txt +2 -1
- specfuse-0.2.3/specfuse.egg-info/entry_points.txt +4 -0
- specfuse-0.2.3/tests/test_entry_points.py +50 -0
- specfuse-0.2.2/specfuse.egg-info/entry_points.txt +0 -2
- {specfuse-0.2.2 → specfuse-0.2.3}/LICENSE +0 -0
- {specfuse-0.2.2 → specfuse-0.2.3}/NOTICE +0 -0
- {specfuse-0.2.2 → specfuse-0.2.3}/README.md +0 -0
- {specfuse-0.2.2 → specfuse-0.2.3}/setup.cfg +0 -0
- {specfuse-0.2.2 → specfuse-0.2.3}/specfuse.egg-info/dependency_links.txt +0 -0
- {specfuse-0.2.2 → specfuse-0.2.3}/specfuse.egg-info/requires.txt +0 -0
- {specfuse-0.2.2 → specfuse-0.2.3}/specfuse.egg-info/top_level.txt +0 -0
- {specfuse-0.2.2 → specfuse-0.2.3}/tests/test_cli.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "specfuse"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.3"
|
|
8
8
|
description = "Specfuse umbrella CLI — bridges the pip-installed driver and the Claude Code plugin (init / upgrade)."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -33,6 +33,14 @@ dev = ["coverage>=7.0", "ruff>=0.6"]
|
|
|
33
33
|
|
|
34
34
|
[project.scripts]
|
|
35
35
|
specfuse = "specfuse.cli:main"
|
|
36
|
+
# Re-export the driver's console scripts so `pipx install specfuse` exposes all
|
|
37
|
+
# three on PATH. pipx only surfaces the installed package's OWN entry points,
|
|
38
|
+
# not its dependencies' — without these, `specfuse-loop`/`specfuse-lint` (from
|
|
39
|
+
# the specfuse-loop dep) would be hidden and users would have to install the
|
|
40
|
+
# driver separately or pass --include-deps. The targets resolve against the
|
|
41
|
+
# specfuse.loop modules the pinned specfuse-loop>=0.3.2 dependency provides.
|
|
42
|
+
specfuse-loop = "specfuse.loop.loop:main"
|
|
43
|
+
specfuse-lint = "specfuse.loop.lint_plan:main"
|
|
36
44
|
|
|
37
45
|
[project.urls]
|
|
38
46
|
Homepage = "https://github.com/specfuse/specfuse"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright 2026 Specfuse contributors
|
|
3
|
+
# Licensed under the Apache License, Version 2.0. See LICENSE.
|
|
4
|
+
#
|
|
5
|
+
"""The umbrella must expose all three console scripts.
|
|
6
|
+
|
|
7
|
+
pipx only surfaces the installed package's OWN entry points, not its
|
|
8
|
+
dependencies'. So `pip install specfuse` must declare specfuse-loop and
|
|
9
|
+
specfuse-lint itself (re-exporting the driver's mains) or a `pipx install
|
|
10
|
+
specfuse` leaves them off PATH and the driver/lint commands appear missing.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import annotations
|
|
14
|
+
|
|
15
|
+
import re
|
|
16
|
+
import unittest
|
|
17
|
+
from pathlib import Path
|
|
18
|
+
|
|
19
|
+
PYPROJECT = Path(__file__).resolve().parent.parent / "pyproject.toml"
|
|
20
|
+
|
|
21
|
+
_EXPECTED = {
|
|
22
|
+
"specfuse": "specfuse.cli:main",
|
|
23
|
+
"specfuse-loop": "specfuse.loop.loop:main",
|
|
24
|
+
"specfuse-lint": "specfuse.loop.lint_plan:main",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _scripts() -> dict[str, str]:
|
|
29
|
+
text = PYPROJECT.read_text(encoding="utf-8")
|
|
30
|
+
block = text.split("[project.scripts]", 1)[1]
|
|
31
|
+
# stop at the next [section]
|
|
32
|
+
block = re.split(r"^\[", block, maxsplit=1, flags=re.MULTILINE)[0]
|
|
33
|
+
out = {}
|
|
34
|
+
for m in re.finditer(r'(?m)^([A-Za-z0-9_-]+)\s*=\s*"([^"]+)"', block):
|
|
35
|
+
out[m.group(1)] = m.group(2)
|
|
36
|
+
return out
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class TestEntryPoints(unittest.TestCase):
|
|
40
|
+
|
|
41
|
+
def test_all_three_console_scripts_declared(self):
|
|
42
|
+
scripts = _scripts()
|
|
43
|
+
for name, target in _EXPECTED.items():
|
|
44
|
+
self.assertIn(name, scripts,
|
|
45
|
+
f"{name} must be declared so pipx exposes it on PATH")
|
|
46
|
+
self.assertEqual(scripts[name], target)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
if __name__ == "__main__":
|
|
50
|
+
unittest.main()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|