Skip to content

Commit 612ba56

Browse files
committed
chore: Dynamically retrieve package version from metadata and update changelog to reflect recent changes under version 0.2.0.
1 parent d6d9309 commit 612ba56

3 files changed

Lines changed: 20 additions & 26 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,6 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [0.3.1] - 2026-03-12
6-
7-
### Fixed
8-
9-
- README — added 5 concrete verifier classes (`YAMLVerifier`, `SyntaxVerifier`,
10-
`RegistryVerifier`, `MagicBytesVerifier`, `JSONVerifier`) to Core Modules table
11-
for documentation completeness
12-
13-
---
14-
15-
## [0.3.0] - 2026-03-12
16-
17-
### Changed
18-
19-
- **apcore >= 0.13.0** — Upgraded minimum dependency to support new
20-
`ModuleAnnotations` caching and pagination fields:
21-
`cacheable`, `cache_ttl`, `cache_key_fields`, `paginated`, `pagination_style`
22-
- `infer_annotations_from_method()``GET` now also infers `cacheable=True`
23-
- `AIEnhancer` — Annotation inference prompt and acceptance logic extended
24-
to handle all 11 annotation fields (5 new: `cacheable`, `cache_ttl`,
25-
`cache_key_fields`, `paginated`, `pagination_style`)
26-
27-
---
28-
295
## [0.2.0] - 2026-03-11
306

317
### Added
@@ -36,6 +12,9 @@ All notable changes to this project will be documented in this file.
3612
APIs (Ollama, vLLM, LM Studio). Fills missing descriptions, infers behavioral
3713
annotations, and generates input schemas for untyped functions. All AI-generated
3814
fields are tagged with `x-generated-by: slm` for auditability.
15+
Annotation inference prompt and acceptance logic extended to handle all 11
16+
annotation fields (5 new: `cacheable`, `cache_ttl`, `cache_key_fields`,
17+
`paginated`, `pagination_style`)
3918
- Output verification via `verify=True` parameter on all writers:
4019
- `YAMLWriter`: validates YAML parsability and required binding fields
4120
- `PythonWriter`: validates Python syntax via `ast.parse()`
@@ -44,6 +23,10 @@ All notable changes to this project will be documented in this file.
4423

4524
### Changed
4625

26+
- **apcore >= 0.13.0** — Upgraded minimum dependency to support new
27+
`ModuleAnnotations` caching and pagination fields:
28+
`cacheable`, `cache_ttl`, `cache_key_fields`, `paginated`, `pagination_style`
29+
- `infer_annotations_from_method()``GET` now also infers `cacheable=True`
4730
- **BREAKING**: All writers now return `list[WriteResult]` instead of
4831
`list[dict]` (YAMLWriter) or `list[str]` (PythonWriter, RegistryWriter).
4932
Downstream adapters (`django-apcore`, `flask-apcore`) must update code that
@@ -53,6 +36,12 @@ All notable changes to this project will be documented in this file.
5336
- `f"wrote: {item}"``f"wrote: {item.module_id}"`
5437
- Downstream packages should pin `apcore-toolkit<0.2.0` until updated
5538

39+
### Fixed
40+
41+
- README — added 5 concrete verifier classes (`YAMLVerifier`, `SyntaxVerifier`,
42+
`RegistryVerifier`, `MagicBytesVerifier`, `JSONVerifier`) to Core Modules table
43+
for documentation completeness
44+
5645
### Tests
5746

5847
- 197 tests (up from 150), all passing

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "apcore-toolkit"
7-
version = "0.3.1"
7+
version = "0.2.0"
88
description = "Shared scanner, schema extraction, and output toolkit for apcore framework adapters"
99
requires-python = ">=3.11"
1010
readme = "README.md"

src/apcore_toolkit/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Public API re-exports for convenient access to core types and utilities.
44
"""
55

6+
from importlib.metadata import PackageNotFoundError
7+
from importlib.metadata import version as _get_version
68
from apcore_toolkit.ai_enhancer import AIEnhancer
79
from apcore_toolkit.formatting import to_markdown
810
from apcore_toolkit.output import get_writer
@@ -15,7 +17,10 @@
1517
from apcore_toolkit.schema_utils import enrich_schema_descriptions
1618
from apcore_toolkit.types import ScannedModule
1719

18-
__version__ = "0.3.0"
20+
try:
21+
__version__ = _get_version("apcore")
22+
except PackageNotFoundError:
23+
__version__ = "unknown"
1924

2025
__all__ = [
2126
"AIEnhancer",

0 commit comments

Comments
 (0)