Skip to content

Makefile: auto-detect Python/pip, add venv + help; ignore generated presentation HTML#637

Open
John15321 wants to merge 1 commit into
mainfrom
john15321/fix-setup-issues-inrepo
Open

Makefile: auto-detect Python/pip, add venv + help; ignore generated presentation HTML#637
John15321 wants to merge 1 commit into
mainfrom
john15321/fix-setup-issues-inrepo

Conversation

@John15321

Copy link
Copy Markdown
Member
  • Detect PYTHON (python3/python) and PIP (uv/pip) automatically; overridable
  • Add requirements.txt; getdeps installs from it
  • Add venv and help targets
  • Ignore .venv/, pycache/, *.pyc
  • Treat static/presentations/*/index.html as build artifacts; regenerate in build-preview
  • Document the new workflow in README

Signed-off-by: Jan Bronicki janbronicki@gmail.com

…resentation HTML

- Detect PYTHON (python3/python) and PIP (uv/pip) automatically; overridable
- Add requirements.txt; getdeps installs from it
- Add venv and help targets
- Ignore .venv/, __pycache__/, *.pyc
- Treat static/presentations/*/index.html as build artifacts; regenerate in build-preview
- Document the new workflow in README

Signed-off-by: Jan Bronicki <janbronicki@gmail.com>
Copilot AI review requested due to automatic review settings July 8, 2026 19:22
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://lemon-wave-085522403-637.westeurope.1.azurestaticapps.net

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the local/CI developer workflow for building the Flatcar website by making Python tooling setup more automatic (and overridable), adding a simple dependency manifest + venv target, and treating generated presentation HTML as build artifacts rather than tracked sources.

Changes:

  • Update Makefile to auto-detect PYTHON/PIP, add help and venv targets, and make build-preview regenerate presentations.
  • Add requirements.txt and update getdeps to install from it.
  • Remove tracked generated presentation HTML and ignore regenerated outputs (plus common Python artifacts) via .gitignore; document the new workflow in README.md.

Reviewed changes

Copilot reviewed 8 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
static/presentations/keycloak-scope-token/index.html Remove generated Marp output from version control (now treated as build artifact).
static/presentations/keycloak-assign-roles/index.html Remove generated Marp output from version control (now treated as build artifact).
static/presentations/auth0-setup/index.html Remove generated Marp output from version control (now treated as build artifact).
requirements.txt Introduce a canonical Python dependency list for Makefile-driven installs.
README.md Document Python tool detection/overrides and the venv-based workflow.
Makefile Add Python/pip auto-detection, help/venv, and ensure CI preview builds presentations.
.gitignore Ignore .venv/, Python bytecode/cache, and generated static/presentations/*/index.html.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile
Comment on lines +81 to 82
build-preview: getdeps docs presentations ## Build a preview site (used by CI)
hugo --theme=flatcar -F -b ${DEPLOY_PRIME_URL}
@John15321 John15321 marked this pull request as ready for review July 8, 2026 19:35
@John15321 John15321 requested a review from a team as a code owner July 8, 2026 19:35
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.

2 participants