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
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "open-map-stack",
"displayName": "OpenMapStack",
"description": "Agentic GIS / geospatial workflows: source discovery and provenance (from open data sources first), vector/raster/point-cloud pipelines, CRS and metric analysis, spatial SQL, QGIS projects, tile generation, and web maps — compiled into reproducible projects.",
"version": "0.1.0",
"version": "0.2.0",
"author": {
"name": "Jaak Laineste",
"url": "https://github.com/jaakla"
Expand Down
2 changes: 1 addition & 1 deletion openmapstack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from .validation import Check, ValidationResult, validate_project

__all__ = ["Check", "ValidationResult", "validate_project"]
__version__ = "0.1.0"
__version__ = "0.2.0"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "openmapstack"
version = "0.1.0"
version = "0.2.0"
description = "Validate, run, and inspect reproducible OpenMapStack projects"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
28 changes: 28 additions & 0 deletions tests/test_release.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from __future__ import annotations

import json
import tomllib

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use a Python 3.10-compatible TOML parser

On the supported Python 3.10 runtime, tomllib is not part of the standard library, so unittest discovery aborts while importing this new module before any tests run. Use a compatible fallback such as tomli, or read the literal project version without requiring tomllib, to keep the repository's test suite usable across its declared Python range.

AGENTS.md reference: AGENTS.md:L105-L107

Useful? React with 👍 / 👎.

import unittest
from pathlib import Path

from openmapstack import __version__


REPO_ROOT = Path(__file__).resolve().parents[1]


class ReleaseVersionTests(unittest.TestCase):
def test_python_and_plugin_versions_match(self) -> None:
package = tomllib.loads(
(REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8")
)["project"]["version"]
plugin = json.loads(
(REPO_ROOT / ".claude-plugin" / "plugin.json").read_text(encoding="utf-8")
)["version"]

self.assertEqual(__version__, package)
self.assertEqual(plugin, package)


if __name__ == "__main__":
unittest.main()
Loading