Skip to content

Latest commit

 

History

History
262 lines (181 loc) · 10.7 KB

CHANGELOG.md

File metadata and controls

262 lines (181 loc) · 10.7 KB

Changelog

All notable changes to the Python package will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.2.11] - 2026-12-03

Changed

  • Rebrand: aiperceivable → apstack (updated package metadata, URLs, README, and NOTICE).

[0.2.10] - 2026-12-03

Changed

  • apdev[release] and apdev[dev] now include twine>=6.1.0 (with PEP 639 / Metadata 2.4 support) alongside build>=1.0.

Fixed

  • release.sh now checks PyPI release status via the PyPI JSON API instead of requiring pip, so it works in uv-managed virtual environments without pip.
  • release.sh now resolves twine via twine, python -m twine, or uvx fallback, and points missing-tool errors to apdev[release].

[0.2.9] - 2026-12-01

Added

  • release.sh auto-derives the git tag prefix from the package's relative path under the repository root (e.g. python/vX.Y.Z in apcore/apdev, mcp/python/vX.Y.Z in apcore-surfaces), falling back to python at the repository root (compatible with apflow, django-apcore, etc.).
  • Override tag prefix via TAG_PREFIX env var (including TAG_PREFIX="" for bare vX.Y.Z tags) or [tool.apdev] tag_prefix in pyproject.toml.
  • Override GitHub release title via RELEASE_TITLE env var.
  • Tests in tests/test_release_scripts.py covering tag prefix and release title resolution across Python, TypeScript, and Rust release scripts.

Changed

  • Default GitHub release title and annotated git tag message changed from Release <version> to <project> (Python) v<version> for clear identification in multi-package and multi-language monorepos.
  • release.sh header banner now prints the resolved Tag and Release title.

Fixed

  • create_github_release_api now builds JSON with jq -n --arg ... --rawfile so special characters in RELEASE_TITLE or TAG cannot break the payload.

[0.2.8] - 2026-11-23

Added

  • CI for the Python package: ruff check and format, pytest with coverage on a 3.10-3.13 matrix, bash -n and shellcheck for release.sh, python -m build plus twine check, and uv lock --check.
  • make lint-python, format-python, test-python, build-python and check-python in the root Makefile.
  • [tool.apdev] in this package's own pyproject.toml, and a CI step that runs apdev check-chars and apdev check-imports on the package itself.
  • The package declares Typing :: Typed, matching the py.typed it ships.

Changed

  • Ship the Apache-2.0 licence: LICENSE and NOTICE are now in the repository, the wheel and the sdist, with PEP 639 metadata (license = "Apache-2.0" plus license-files). The licence classifier is gone, and build-system.requires needs setuptools>=77.
  • build moved out of the runtime dependencies into apdev[release], and stays in apdev[dev]. A plain install no longer pulls build, packaging and pyproject-hooks, and release.sh names the extra when the frontend is missing.
  • ruff also checks B, UP, SIM, RUF and PTH; pytest runs with -ra --strict-markers --strict-config and enforces coverage at 80% (branch coverage is 87%).
  • uv.lock regenerated; it still pinned apdev 0.2.5.

Fixed

  • check-imports no longer reports "no circular imports detected" when nothing was scanned: a missing package directory, a wrong --package, or a package without modules exits 1. from pkg import sub is recorded as pkg.sub, so cycles using that import style are found.
  • check-chars: missing paths report "file not found", malformed charset files report Error: Invalid charset ... instead of a JSON traceback, binary files are skipped instead of raising UnicodeDecodeError, and an explicit path that expands to nothing is an error.
  • The test modules start with from __future__ import annotations, so str | Path signatures no longer break collection on Python 3.10.
  • release.sh no longer uses local x=$(...), which masked exit statuses (shellcheck SC2155).
  • CI: the workflow-level defaults.run.working-directory also applied to the shellcheck job, resolving its path to python/python/src/...; the default is scoped to the test job now.
  • Three assertions in the charset tests were written the wrong way round (they asked whether a range sits inside the CJK block instead of whether CJK sits inside a range); they use a _contains() helper now.
  • Test fixtures use \u escapes rather than literal CJK, so the repository passes its own default check-chars run.

[0.2.7] - 2026-11-22

Added

  • apdev release --account NAME / -a NAME, and [tool.apdev] github_account, so the GitHub release is published as a chosen gh login instead of whichever account happens to be active. The token is resolved with gh auth token --user NAME and exported for that run only, so the active account is never switched; GITHUB_ACCOUNT works as an environment override, and an account that is not logged in aborts before any step runs.
  • The release header prints GitHub user: <login> next to the PyPI section.
  • get_github_token honours GH_TOKEN when step 6.5 clears GITHUB_TOKEN, so the API fallback uses the same account as the CLI.

Changed

  • The README documents github_account and the two-login gh setup.

Fixed

  • owner/repo is parsed from any remote form, including per-account SSH aliases such as git@github-work:owner/repo.git. Previously only a github.com prefix was stripped, so step 6.5 passed a URL to gh release create --repo and failed.

[0.2.6] - 2026-11-22

Added

  • apdev release --repository NAME / -r NAME, and [tool.apdev] pypi_repository in the consumer project, so twine upload targets a named ~/.pypirc section instead of always using [pypi]. Resolution order is flag, PYPI_REPOSITORY environment variable, [tool.apdev], then pypi.
  • The release header prints the resolved section, so it is obvious which PyPI account a release will use before anything is uploaded.
  • [tool.apdev] keys are documented in the README Configuration section, including pypi_repository.

Changed

  • release.sh parses its arguments with a while loop, and reads pypi_repository with awk instead of tomllib, so the script still works on machines whose python3 predates 3.11.

[0.2.5] - 2026-11-18

Changed

  • Refresh uv.lock (pytest 9.2.0, coverage 7.16.2, and other patch updates). No public API changes.

Fixed

  • apdev release uses the project's .venv when invoked without an active virtual environment, so it can find the project's Python and release tools.
  • apdev.__version__ now matches the package version; it had drifted to 0.2.3.

[0.2.4] - 2026-03-22

Changed

  • Rebrand: aipartnerup → aiperceivable

[0.2.1] - 2026-03-06

Fixed

  • Release script version check now supports dynamic versions via importlib.metadata (not just static __version__ = "x.x.x")
  • Added hint message suggesting pip install -e . when version mismatch is detected

[0.2.0] - 2026-02-25

Added

  • Custom charset support via shared JSON definition files (shared/charsets/)
  • load_charset(name_or_path) — load a bundled preset (e.g. chinese) or custom JSON file
  • resolve_charsets(charset_names, charset_files) — merge base + extra charsets with deduplication
  • Bundled charset presets: base, chinese, japanese, korean
  • CLI --charset flag (repeatable) to enable preset charsets
  • CLI --charset-file flag (repeatable) to load custom charset JSON files
  • APDEV_EXTRA_CHARS environment variable — comma-separated charset names or file paths, used as fallback when no CLI args provided
  • check-chars: Block Elements (U+2580-U+259F) and Braille Patterns (U+2800-U+28FF) to default allowed ranges

Changed

  • Character ranges and dangerous codepoints now loaded from charsets/base.json instead of hardcoded constants
  • check_file() and check_paths() accept optional extra_ranges and dangerous kwargs for custom charset support
  • is_allowed_char() now excludes dangerous codepoints (Trojan Source vectors) even though they fall within the General Punctuation allowed range

Fixed

  • is_allowed_char() previously returned True for dangerous codepoints (U+200B, U+202E, etc.) because they fall within the General Punctuation range (U+2000-U+206F)
  • load_charset() now catches all exceptions from importlib.resources (not just FileNotFoundError)
  • check_file() now uses lazy-loaded cache instead of re-parsing base.json on every call

[0.1.6] - 2026-02-16

Added

  • check-chars: Dangerous character blacklist (bidi controls + zero-width chars, CVE-2021-42574) with comment-aware detection — flags in code, allows in comments
  • check-chars: is_dangerous_char() public function and DANGEROUS_CODEPOINTS constant
  • check-chars: Comment region detection state machine for Python (#) and JS/TS (//, /* */) with string literal tracking
  • check-imports: Relative import support — from .foo import x and from . import foo now resolve correctly for cycle detection

Fixed

  • check-imports: ImportAnalyzer now handles node.level > 0 (relative imports) by resolving against current_module with correct package vs module distinction

[0.1.5] - 2026-02-16

Changed

  • Use language-prefixed git tags (python/v0.1.5) to support monorepo with independent package versions
  • URL-encode tag in GitHub API calls to handle / in tag names

[0.1.4] - 2026-02-15

Fixed

  • Fix release script version check to use PACKAGE_NAME when reading init.py

[0.1.3] - 2026-02-15

Fixed

  • Add PACKAGE_NAME default (project name with hyphens converted to underscores) for release script

[0.1.2] - 2026-02-14

Fixed

  • Fix PyPI version check false positives: use exact match instead of grep -w to prevent partial version matching (e.g. 0.2.0 matching 0.2.0.1)
  • Fix sed RE error on macOS when detecting GitHub repo from git remote (BSD sed doesn't support non-greedy .+?)

[0.1.1] - 2026-02-14

Added

  • Add build>=1.0 as a project dependency for package building support

[0.1.0] - 2026-02-14

Added

  • check-chars - Validate files contain only allowed characters (ASCII, emoji, technical symbols)
  • check-imports - Detect circular imports in a Python package with configurable --package and --src-dir
  • Unified CLI entry point: apdev <command>
  • Configuration support via [tool.apdev] in consumer's pyproject.toml
  • Pre-commit hook definitions for check-chars and check-imports
  • apdev release - Interactive release automation (auto-detects project name and GitHub repo)
  • python -m apdev support