Skip to content

Release v0.3.1 — finish pythonlings rename + --version fix#27

Merged
abhiksark merged 3 commits into
mainfrom
dev
Jun 20, 2026
Merged

Release v0.3.1 — finish pythonlings rename + --version fix#27
abhiksark merged 3 commits into
mainfrom
dev

Conversation

@abhiksark

@abhiksark abhiksark commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Promotes 0.3.1 to main for tagging and release.

Verified: 123 tests pass locally, CI matrix (3.11/3.12/3.13) green on #26, built wheel smoke-tests as 0.3.1.

Summary by CodeRabbit

  • Bug Fixes

    • pythonlings --version now correctly reports the installed package version from metadata
    • Standardized all project references from pylings to pythonlings for consistency across commands and documentation
  • Documentation

    • Updated command examples and architecture documentation to reflect naming consistency

Version: v0.3.1

The rename shipped in published 0.3.0 (package, dist, and the pythonlings command), but CLAUDE.md still documented the old pylings command, package paths, stylesheet, and entry point. Update them so contributors and agents run the command that actually ships.

Bump to 0.3.1 (docs/packaging cleanup, no behavior change) and add the CHANGELOG entry. The unrelated pylings PyPI package belongs to a different project; pythonlings is the only command this project ships.

Closes #24
cli.py hardcoded __version__ = "0.3.0" as a second version source separate from pyproject.toml, so 'pythonlings --version' reported the wrong number after the 0.3.1 bump. Read the version from installed package metadata instead, with a source-checkout fallback, so it can never drift from pyproject again.

Surfaced while running the RELEASE.md pre-release checklist for 0.3.1.
docs: finish pylings → pythonlings rename in CLAUDE.md
@abhiksark abhiksark merged commit d58a92a into main Jun 20, 2026
@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bf9286d7-bd68-438a-a7be-4e60a2dcae95

📥 Commits

Reviewing files that changed from the base of the PR and between 10e6bb0 and 8706811.

📒 Files selected for processing (5)
  • CHANGELOG.md
  • CLAUDE.md
  • Readme.md
  • pyproject.toml
  • pythonlings/cli.py

📝 Walkthrough

Walkthrough

Version bumped from 0.3.0 to 0.3.1. cli.py's __version__ is now derived from installed package metadata via importlib.metadata with a fallback. Stale pylings references in CLAUDE.md are corrected to pythonlings, and README.md and CHANGELOG.md are updated to reflect the new version.

Changes

v0.3.1 Release: Dynamic Versioning and Doc Rename Fixes

Layer / File(s) Summary
Dynamic __version__ via importlib.metadata
pythonlings/cli.py, pyproject.toml
__version__ is now resolved at runtime from the installed pythonlings distribution metadata, falling back to "0.0.0+unknown" when the package is not installed. Package version bumped to 0.3.1.
Contributor docs renamed to pythonlings
CLAUDE.md, Readme.md
All command examples, package paths, and entry-point references in CLAUDE.md updated from pylings to pythonlings. README status line updated to v0.3.1.
CHANGELOG 0.3.1 entry
CHANGELOG.md
New [0.3.1] - 2026-06-20 section added under Fixed, documenting the metadata-sourced version and corrected pylings references.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • abhiksark/pythonlings#23: Directly precedes this PR — #23 hardcoded __version__ to "0.3.0" in cli.py, while this PR replaces that hardcoded value with importlib.metadata.version("pythonlings").

Poem

🐇 A version once frozen in stone,
Now blooms from metadata grown!
Old pylings names, swept away,
pythonlings commands hold sway.
The rabbit hops — and the docs are home! 🎉

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

Finish pylings → pythonlings rename: stale pylings refs in CLAUDE.md + collision with unrelated PyPI package

1 participant