Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PROGRESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
| Permissions | — | 34 |
| Errors | — | 55 |
| Client | — | 75 |
| Config | — | 24 |
| Config | — | 26 |
| State | — | 2 |
| File Helpers | — | 36 |
| File Reminders | 3 | 22 |
Expand All @@ -122,7 +122,7 @@
| Cospend | 16 | 41 |
| Flow | 5 | 58 |
| Pagination | — | 28 |
| **Total** | **223** | **1787** |
| **Total** | **223** | **1789** |

The test counts are what pytest collects, recomputed with `python scripts/sync_progress.py --write`,
which also fails when a test file is not assigned to a row.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = [ "setuptools>=68" ]

[project]
name = "nc-mcp-server"
version = "0.8.0"
version = "0.9.0"
description = "MCP server for Nextcloud — expose Nextcloud APIs as AI-usable tools"
readme = "README.md"
keywords = [ "ai", "mcp", "model-context-protocol", "nextcloud" ]
Expand Down
2 changes: 1 addition & 1 deletion scripts/sync_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"integration/test_session_cache.py",
],
"Pagination": ["integration/test_pagination.py"],
"Config": ["test_config.py"],
"Config": ["test_config.py", "test_version.py"],
"State": ["test_state.py"],
"File Helpers": ["test_files_helpers.py"],
"File Reminders": ["integration/test_reminders.py", "test_reminders.py"],
Expand Down
7 changes: 6 additions & 1 deletion src/nc_mcp_server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""Nextcloud MCP Server — expose Nextcloud APIs as AI-usable MCP tools."""

__version__ = "0.1.0"
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("nc-mcp-server")
except PackageNotFoundError: # running from a source tree that was never installed
__version__ = "0.0.0"
16 changes: 16 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""The package reports the version it was installed with."""

import tomllib
from importlib.metadata import version
from pathlib import Path

import nc_mcp_server


def test_version_comes_from_the_installed_package() -> None:
assert nc_mcp_server.__version__ == version("nc-mcp-server")


def test_pyproject_and_installed_version_agree() -> None:
pyproject = tomllib.loads((Path(__file__).parents[1] / "pyproject.toml").read_text(encoding="utf-8"))
assert nc_mcp_server.__version__ == pyproject["project"]["version"]
Loading