Repository navigation
Releases
Releases · HenriquesLab/henriqueslab-updater
v1.2.0 - Centralized Upgrade Workflow
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
UpgradeNotifierProtocol for custom CLI output formattingSimpleUpgradeNotifierimplementation 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,SimpleUpgradeNotifierfrom main package
- Exported
Fixed
- Python 3.9 compatibility in test suite
- Test mocking for optional rich dependency
v1.1.3 - Cache Invalidation Fix
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
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-publishaction
This release tests the new OIDC-based publishing workflow.
Full changelog: https://github.com/HenriquesLab/henriqueslab-updater/blob/main/CHANGELOG.md
v1.1.1
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
- Automatic handling of compound commands with
- 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
🚀 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
- PyPI: https://pypi.org/project/henriqueslab-updater/1.0.0/
- Documentation: See README.md
- Issues: https://github.com/HenriquesLab/henriqueslab-updater/issues
📊 Test Coverage
- 139 unit tests (all passing)
- 64% code coverage
- Python 3.9 - 3.12 supported