Skip to content

Releases

v1.2.0 - Centralized Upgrade Workflow

Choose a tag to compare

@paxcalpt paxcalpt released this 17 Dec 15:58

Added

  • Upgrade Workflow: New centralized handle_upgrade_workflow() function for CLI applications
    • Complete end-to-end upgrade workflow with update checking, user confirmation, and execution
    • UpgradeNotifier Protocol for custom CLI output formatting
    • SimpleUpgradeNotifier implementation with no external dependencies
    • Supports check-only mode, skip confirmation, and custom GitHub release URLs
    • Returns standardized (success, error) tuples for easy error handling
    • Designed for reuse across all HenriquesLab CLI tools
  • Workflows Package: New workflows/ module for common CLI task workflows
    • Exported handle_upgrade_workflow, UpgradeNotifier, SimpleUpgradeNotifier from main package

Fixed

  • Python 3.9 compatibility in test suite
  • Test mocking for optional rich dependency

v1.1.3 - Cache Invalidation Fix

Choose a tag to compare

@paxcalpt paxcalpt released this 15 Dec 17:12

Fixed

  • Cache Invalidation: Fix stale update notifications after version upgrade
    • Cache now invalidates when current version changes
    • Prevents showing "update available" notifications after already upgrading
    • Adds current_version validation in get_cached_update_info()

This fixes the issue where TUI and other commands would show an "update available" notification even after successfully upgrading to the latest version. The cache is now version-aware and automatically invalidates when the installed version changes.


Full changelog: https://github.com/HenriquesLab/henriqueslab-updater/blob/main/CHANGELOG.md

v1.1.2 - OIDC Publishing Test

Choose a tag to compare

@paxcalpt paxcalpt released this 15 Dec 17:03

Changed

  • CI/CD: Migrated PyPI publishing from API tokens to OIDC (OpenID Connect) trusted publishing
    • More secure: Short-lived tokens instead of long-lived API tokens
    • No secret management: GitHub Actions authenticates directly with PyPI
    • Uses official pypa/gh-action-pypi-publish action

This release tests the new OIDC-based publishing workflow.


Full changelog: https://github.com/HenriquesLab/henriqueslab-updater/blob/main/CHANGELOG.md

v1.1.1

Choose a tag to compare

@paxcalpt paxcalpt released this 15 Dec 16:46

Added

  • Upgrade Executor: New execute_upgrade() function for safely executing upgrade commands
    • Automatic handling of compound commands with && (e.g., brew update && brew upgrade pkg)
    • Proper command parsing using shlex.split() to prevent shell injection
    • Configurable output display and timeout settings
    • Returns (success, error_message) tuple for easy error handling
  • UpgradeError: New exception class for upgrade failures with command details
  • execute_upgrade_raise(): Convenience wrapper that raises exceptions instead of returning tuples

Changed

  • Exported upgrade utilities from main package: execute_upgrade, execute_upgrade_raise, UpgradeError

Full changelog: https://github.com/HenriquesLab/henriqueslab-updater/blob/main/CHANGELOG.md

v1.0.0 - Initial Stable Release

Choose a tag to compare

@paxcalpt paxcalpt released this 14 Dec 13:09

🚀 Initial Stable Release

First production release of henriqueslab-updater - a centralized update checking library for HenriquesLab Python packages.

✨ Features

  • Multi-source version checking (PyPI, Homebrew, GitHub)
  • Smart installation detection (7 methods)
  • Homebrew-first strategy for brew installations
  • Background async checking (non-blocking)
  • Smart caching with 24-hour TTL
  • Environment variable opt-out support
  • Rich and simple notifiers
  • Optional changelog plugin

📦 Installation

pip install henriqueslab-updater

🔗 Links

📊 Test Coverage

  • 139 unit tests (all passing)
  • 64% code coverage
  • Python 3.9 - 3.12 supported