Add local RPG-Kit template source and managed venv setup#55
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for building RPG-Kit templates from a local checkout (instead of downloading release assets) and introduces an automated “managed” Python venv (.venv_rpgkit) setup during rpgkit init/update, alongside some small repo/workflow/documentation updates.
Changes:
- Add
--sourcetorpgkit init/rpgkit updateand wire it to build a local template archive via the release-packaging scripts. - Add
.venv_rpgkitmanagement: create/update the venv, install Python deps, ignore it via the managed.gitignore, and print activation instructions. - Tighten the
rpgkit-pre-releaseworkflow branch trigger and refresh README/news text.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
RPG-Kit/src/rpgkit_cli/__init__.py |
Adds --source flow for local template packaging, adds .venv_rpgkit setup + related messaging, and updates ignore/prune lists. |
README.md |
Updates badge labels and refreshes the News section. |
.gitignore |
Ignores workspace/ at repo root. |
.github/workflows/scripts/rpgkit/create-release-packages.sh |
Allows overriding Python interpreter and copies pyproject.toml into generated .rpgkit/. |
.github/workflows/scripts/rpgkit/create-release-packages.ps1 |
Copies pyproject.toml into generated .rpgkit/ (PowerShell variant). |
.github/workflows/rpgkit-pre-release.yml |
Narrows push trigger from dev + dev/** to dev only. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+2812
to
+2815
| result = subprocess.run( | ||
| ["bash", str(release_script), version], | ||
| cwd=repo_root, | ||
| env=env, |
Comment on lines
+3692
to
+3696
| steps_lines.append( | ||
| f"{step_num}. Activate the RPG-Kit Python environment: " | ||
| f"[cyan]source .venv_rpgkit/bin/activate[/cyan]" | ||
| ) | ||
| step_num += 1 |
Comment on lines
+4039
to
+4047
| console.print( | ||
| Panel( | ||
| "Activate the RPG-Kit Python environment before using slash commands:\n\n" | ||
| "[cyan]source .venv_rpgkit/bin/activate[/cyan]", | ||
| title="[yellow]Environment Setup[/yellow]", | ||
| border_style="yellow", | ||
| padding=(1, 2), | ||
| ) | ||
| ) |
Comment on lines
+118
to
+119
| [[ -f pyproject.toml ]] && { cp pyproject.toml "$SPEC_DIR/pyproject.toml"; echo "Copied pyproject.toml -> .rpgkit"; } | ||
|
|
Comment on lines
+3297
to
+3304
| source: Optional[Path] = typer.Option( | ||
| None, | ||
| "--source", | ||
| help=( | ||
| "Use a local RPG-Kit source checkout to build and install the " | ||
| "template package instead of downloading a release asset." | ||
| ), | ||
| ), |
Comment on lines
+159
to
+163
| if (Test-Path "pyproject.toml") { | ||
| Copy-Item -Path "pyproject.toml" -Destination (Join-Path $specDir "pyproject.toml") -Force | ||
| Write-Host "Copied pyproject.toml -> .rpgkit" | ||
| } | ||
|
|
Bonytu
approved these changes
May 18, 2026
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.
--sourcesupport forrpgkit initandrpgkit update, allowing templates to be built from a local RPG-Kit checkout instead of downloading a GitHub release asset..venv_rpgkitduringinitandupdate, install dependencies from.rpgkit/pyproject.toml, ignore the venv in generated.gitignore, and show activation instructions after setup.