Skip to content

Fix npm version import and bump to v0.1.4 - #10

Merged
lionuncle merged 4 commits into
mainfrom
feat/update-notifier
Apr 15, 2026
Merged

Fix npm version import and bump to v0.1.4#10
lionuncle merged 4 commits into
mainfrom
feat/update-notifier

Conversation

@lionuncle

Copy link
Copy Markdown
Contributor

Summary

  • Fix ModuleNotFoundError: No module named 'rpr' when running via npm — adds _get_version() fallback that parses the sibling __init__.py instead of requiring the rpr package on the Python path
  • Bump version to 0.1.4 across __init__.py, pyproject.toml, and package.json to sync with npm registry (0.1.3 already published)
  • Includes previously undeployed features: rpr update self-update command, background update notifications, review depth modes

Test plan

  • Install via npm and verify rpr <PR> no longer throws ModuleNotFoundError on the background update check
  • Verify rpr update works when installed via npm
  • Verify rpr <PR> --depth quick works in the npm-installed version

🤖 Generated with Claude Code

lionuncle and others added 4 commits April 10, 2026 17:44
Adds a self-update command that checks PyPI for the latest version and
runs the appropriate package manager to update. Auto-detects the install
method (pipx, brew, npm, or pip) and runs the matching upgrade command.
Also clears the update cache after a successful update so the
notification banner doesn't linger.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add _get_version() fallback that reads __init__.py when the rpr package
isn't on the Python path (npm shim runs cli.py directly). Bump version
to 0.1.4 across all manifests to sync with npm registry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lionuncle
lionuncle merged commit 08dc9a9 into main Apr 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant