fix: update version strings and test expectations from 3.2.0 to 3.3.0
Fix CI failures: version hardcoded in _version.py fallbacks and test assertions (test_package_structure, test_cli_paths) still referenced 3.2.0 after the version bump.
This commit is contained in:
@@ -28,7 +28,7 @@ def get_version() -> str:
|
|||||||
"""
|
"""
|
||||||
if tomllib is None:
|
if tomllib is None:
|
||||||
# Fallback if TOML library not available
|
# Fallback if TOML library not available
|
||||||
return "3.2.0" # Hardcoded fallback
|
return "3.3.0" # Hardcoded fallback
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Get path to pyproject.toml (3 levels up from this file)
|
# Get path to pyproject.toml (3 levels up from this file)
|
||||||
@@ -37,7 +37,7 @@ def get_version() -> str:
|
|||||||
|
|
||||||
if not pyproject_path.exists():
|
if not pyproject_path.exists():
|
||||||
# Fallback for installed package
|
# Fallback for installed package
|
||||||
return "3.2.0" # Hardcoded fallback
|
return "3.3.0" # Hardcoded fallback
|
||||||
|
|
||||||
with open(pyproject_path, "rb") as f:
|
with open(pyproject_path, "rb") as f:
|
||||||
pyproject_data = tomllib.load(f)
|
pyproject_data = tomllib.load(f)
|
||||||
@@ -46,7 +46,7 @@ def get_version() -> str:
|
|||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
# Fallback if anything goes wrong
|
# Fallback if anything goes wrong
|
||||||
return "3.2.0" # Hardcoded fallback
|
return "3.3.0" # Hardcoded fallback
|
||||||
|
|
||||||
|
|
||||||
__version__ = get_version()
|
__version__ = get_version()
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ class TestUnifiedCLIEntryPoints(unittest.TestCase):
|
|||||||
|
|
||||||
# Should show version
|
# Should show version
|
||||||
output = result.stdout + result.stderr
|
output = result.stdout + result.stderr
|
||||||
self.assertIn("3.2.0", output)
|
self.assertIn("3.3.0", output)
|
||||||
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
# If skill-seekers is not installed, skip this test
|
# If skill-seekers is not installed, skip this test
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class TestCliPackage:
|
|||||||
import skill_seekers.cli
|
import skill_seekers.cli
|
||||||
|
|
||||||
assert hasattr(skill_seekers.cli, "__version__")
|
assert hasattr(skill_seekers.cli, "__version__")
|
||||||
assert skill_seekers.cli.__version__ == "3.2.0"
|
assert skill_seekers.cli.__version__ == "3.3.0"
|
||||||
|
|
||||||
def test_cli_has_all(self):
|
def test_cli_has_all(self):
|
||||||
"""Test that skill_seekers.cli package has __all__ export list."""
|
"""Test that skill_seekers.cli package has __all__ export list."""
|
||||||
@@ -88,7 +88,7 @@ class TestMcpPackage:
|
|||||||
import skill_seekers.mcp
|
import skill_seekers.mcp
|
||||||
|
|
||||||
assert hasattr(skill_seekers.mcp, "__version__")
|
assert hasattr(skill_seekers.mcp, "__version__")
|
||||||
assert skill_seekers.mcp.__version__ == "3.2.0"
|
assert skill_seekers.mcp.__version__ == "3.3.0"
|
||||||
|
|
||||||
def test_mcp_has_all(self):
|
def test_mcp_has_all(self):
|
||||||
"""Test that skill_seekers.mcp package has __all__ export list."""
|
"""Test that skill_seekers.mcp package has __all__ export list."""
|
||||||
@@ -108,7 +108,7 @@ class TestMcpPackage:
|
|||||||
import skill_seekers.mcp.tools
|
import skill_seekers.mcp.tools
|
||||||
|
|
||||||
assert hasattr(skill_seekers.mcp.tools, "__version__")
|
assert hasattr(skill_seekers.mcp.tools, "__version__")
|
||||||
assert skill_seekers.mcp.tools.__version__ == "3.2.0"
|
assert skill_seekers.mcp.tools.__version__ == "3.3.0"
|
||||||
|
|
||||||
|
|
||||||
class TestPackageStructure:
|
class TestPackageStructure:
|
||||||
@@ -212,7 +212,7 @@ class TestRootPackage:
|
|||||||
import skill_seekers
|
import skill_seekers
|
||||||
|
|
||||||
assert hasattr(skill_seekers, "__version__")
|
assert hasattr(skill_seekers, "__version__")
|
||||||
assert skill_seekers.__version__ == "3.2.0"
|
assert skill_seekers.__version__ == "3.3.0"
|
||||||
|
|
||||||
def test_root_has_metadata(self):
|
def test_root_has_metadata(self):
|
||||||
"""Test that skill_seekers root package has metadata."""
|
"""Test that skill_seekers root package has metadata."""
|
||||||
|
|||||||
Reference in New Issue
Block a user