1.11.1: version from package metadata, license key embedded - #200
Merged
Conversation
redcon --version reported 1.10.0 in the 1.11.0 wheel because the number was hardcoded in redcon/__init__.py next to the real one in pyproject.toml. Single-source it from importlib.metadata so the two can never drift again, and cut the 1.11.1 changelog section, folding in the prompt_cache_key entry from Unreleased.
1.11.1 turns Pro licensing on. Fill _EMBEDDED_PUBLIC_KEY_B64 with the production Ed25519 public key (base64url of the raw 32 bytes) so redcon license --activate can verify purchased licenses offline. The matching private key never leaves the signer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
redcon --versionandredcon.__version__now read the installed package metadata viaimportlib.metadatainstead of a hardcoded string. The 1.11.0 wheel shipped reporting 1.10.0 because the two version locations drifted; single-sourcing makes that impossible.redcon/entitlements.py; Pro licenses purchased for 1.11.1 and later activate offline withredcon license --activate.prompt_cache_keyentry already on main.Verification
redcon --versionprints 1.11.1,redcon.__version__matches.0.0.0+sourceinstead of raising.tests/test_entitlements.pyandtests/test_prompt_cache_key.py: 22 passed on the rebuilt branch.ruff checkandruff format --checkclean on the touched files.Release checklist (after merge)
v1.11.1to trigger the release workflow.redcon --version, thenredcon license --activatewith a freshly signed key.