Create a github issue to remove version file, the config in the folder is sufficient.…
Private research annotation
Sign in to add a private research label or note.
- User
Create a github issue to remove version file, the config in the folder is sufficient. Explore the codebase
Assistant
I'll explore the codebase to find the version file and understand how versioning is currently handled.
Assistant
Now I have a clear picture. The version is hardcoded in two places —
pyproject.tomlandsrc/authsome/__init__.py— and must be kept in sync manually. The fix is to derive__version__from package metadata usingimportlib.metadata. Let me write the plan.Assistant
Issue created: https://github.com/agentrhq/authsome/issues/222
It tracks removing the hardcoded
__version__ = "0.2.4"fromsrc/authsome/__init__.pyand replacing it with animportlib.metadatalookup, makingpyproject.tomlthe single source of truth.- User
/commit-push-pr Fix the issue and create the commit and pr in new branch. Also add the rule in AGENTS.md file to never work on main branch directly, always open pr
- User
commit-push-pr /commit-push-pr Fix the issue and create the commit and pr in new branch. Also add the rule in AGENTS.md file to never work on main branch directly, always open pr
Assistant
PR is live: https://github.com/agentrhq/authsome/pull/223
Here's what was done:
-
Fixed issue #222 —
src/authsome/__init__.pyno longer hardcodes__version__. It now usesimportlib.metadata.version("authsome")sopyproject.tomlis the single source of truth. APackageNotFoundErrorfallback handles editable installs. All callers are unchanged. -
Updated
AGENTS.md— added the rule: "Never commit directly tomain. All changes must go through a pull request." -
Branch:
chore/derive-version-from-metadata→ committed, pushed, and PR opened againstagentrhq/authsome.
-