GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — WIP: ENH: Replace the shell wheel build system with Python (supersedes #302) by hjmjohnson · Pull Request #309 · InsightSoftwareConsortium/ITKPythonPackage

WIP: ENH: Replace the shell wheel build system with Python (supersedes #302) #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
hjmjohnson wants to merge 20 commits into InsightSoftwareConsortium:main
base: main
Loading
Loading
from BRAINSia:itk6-build-system-v2

Uh oh!

There was an error while loading. Please reload this page.

Draft

WIP: ENH: Replace the shell wheel build system with Python (supersedes #302) #309

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ddd3ac7
COMP: Adopt pixi and pre-commit for build environment
hjmjohnson Sep 16, 2026
c937c0e
ENH: Add target platform and architecture resolution
hjmjohnson Sep 16, 2026
efde3c9
ENH: Add direct coverage for TargetPlatform.detect() OS matrix
hjmjohnson Sep 16, 2026
ef0c6bd
ENH: Add remote module dependency and ITK version pinning
hjmjohnson Sep 16, 2026
8a7b8bb
ENH: Add platform builder hierarchy and build environment
hjmjohnson Sep 16, 2026
18ab60f
ENH: Test the builder template method on every platform
hjmjohnson Sep 16, 2026
fb71b18
ENH: Add wheel build driver, packaging, and publishing
hjmjohnson Sep 16, 2026
4014917
COMP: Update CMake and add shell and PowerShell entry points
hjmjohnson Sep 17, 2026
0ef1eaf
ENH: Remove superseded shell based build system
hjmjohnson Sep 17, 2026
06a0667
DOC: Re-platform documentation for the pixi build
hjmjohnson Sep 17, 2026
3ab62e5
DOC: Add AGENTS.md and CLAUDE.md for agentic coding tools
hjmjohnson Sep 20, 2026
d6c479d
DOC: Correct README build commands and add a verification step
hjmjohnson Sep 20, 2026
ce79851
PERF: Bound ninja jobs by physical memory and key -l to the thread count
hjmjohnson Sep 20, 2026
a30e066
PERF: Build the ITK wheels with Ninja on Windows, as the module wheel…
hjmjohnson Sep 20, 2026
39c8a74
COMP: Restore the manylinux image-coordinate script
hjmjohnson Sep 20, 2026
71ba09a
DOC: Remove the unused Sphinx batch file and correct the cache path note
hjmjohnson Sep 20, 2026
4340183
ENH: Allow building a remote module against an installed ITK
hjmjohnson Sep 21, 2026
57a3467
ENH: Derive the Windows build root from the checkout location
hjmjohnson Sep 24, 2026
f986d72
COMP: Bound the pixi installer download and fall back to the GitHub r…
hjmjohnson Sep 24, 2026
c2e4574
BUG: Fail the superbuild step when its build fails, not later in step 02
hjmjohnson Sep 24, 2026
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

2 changes: 2 additions & 0 deletions 2 .gitattributes
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SCM syntax highlighting & preventing 3-way merges
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
29 changes: 29 additions & 0 deletions 29 .github/pull_request_template.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Summary

<!-- One or two sentences describing what this PR does and why. -->

## Type of Change

- [ ] Bug fix
- [ ] New feature / enhancement
- [ ] Refactor / cleanup
- [ ] Docs / CI only

## Checklist

- [ ] Pre-commit hooks pass locally (`pre-commit run --all-files`)
- [ ] Tested wheel build on affected platform(s) (Linux / macOS / Windows)
- [ ] Docs updated if behavior changed (`docs/`)
- [ ] Commit messages use ITK prefixes (`BUG:`, `COMP:`, `DOC:`, `ENH:`, `PERF:`, `STYLE:`)

## Platform(s) Tested

<!-- Check all that apply, or note "untested" where applicable. -->
- [ ] Linux x86_64 (manylinux)
- [ ] Linux aarch64 (manylinux)
- [ ] macOS arm64
- [ ] Windows x86_64

## Related Issues

<!-- Closes #... -->
31 changes: 31 additions & 0 deletions 31 .github/workflows/docs.yaml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: docs

on:
pull_request:
paths:
- "docs/**"
- ".readthedocs.yml"
push:
branches: [main]
paths:
- "docs/**"
- ".readthedocs.yml"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r docs/requirements-docs.txt
- name: Build docs
run: sphinx-build -W --keep-going -b html docs docs/_build/html
- uses: actions/upload-artifact@v4
if: always()
with:
name: docs-html
path: docs/_build/html
retention-days: 7
16 changes: 16 additions & 0 deletions 16 .github/workflows/pre-commit.yaml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: pre-commit/[email protected]
16 changes: 15 additions & 1 deletion 16 .gitignore
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ lib
lib64
MANIFEST
oneTBB-prefix/
pyproject.toml

# Installer logs
pip-log.txt
Expand All @@ -54,6 +53,9 @@ pip-log.txt
.tox
coverage.xml
htmlcov
.pytest_cache/
.hypothesis/
__pycache__/

# Translations
*.mo
Expand All @@ -73,3 +75,15 @@ docs/_build
# IDE junk
.idea/*
*.swp
/itkVersion.py
# PyPI credentials
.pypirc

# pixi environments
.pixi/*
!.pixi/config.toml

# pixi installer that the Windows entry-point scripts fetch into the
# working directory (make_windows_zip.ps1,
# windows-download-cache-and-build-module-wheels.ps1)
install-pixi.ps1
69 changes: 69 additions & 0 deletions 69 .pre-commit-config.yaml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,4 +1,73 @@
# Pre-commit configuration for ITKPythonPackage
# Run `pre-commit install` to install git hooks locally
# Run `pre-commit run --all-files` to check all files
# Run `pre-commit autoupdate` to update hook versions

# Exclude generated/vendored directories from all hooks
exclude: ^(\.pixi/|build/|docs/|pixi\.lock$)

repos:
# General file hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
- id: check-toml
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: check-added-large-files
args: [--maxkb=500]
stages: [pre-commit]
# Enforce LF line endings everywhere except Windows PowerShell scripts
- id: mixed-line-ending
args: [--fix=lf]
exclude: \.ps1$
stages: [pre-commit]

# Python: formatting
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
stages: [pre-commit]

# Python: linting + import sorting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
hooks:
- id: ruff
args: [--fix]
stages: [pre-commit]

# Shell: linting
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
stages: [pre-commit]

# Shell: formatting
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.12.0-2
hooks:
- id: shfmt
args: [-i, "2", -w]
stages: [pre-commit]

# TOML: formatting
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
stages: [pre-commit]

# ITK commit message hooks (matching ITK/Utilities/Hooks/)
- repo: local
hooks:
- id: local-prepare-commit-msg
Expand Down
23 changes: 23 additions & 0 deletions 23 .pypirc.example
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .pypirc.example -- DO NOT commit real credentials
# Copy to ~/.pypirc and fill in your token.
#
# Generate a token at: https://pypi.org/manage/account/token/
# For TestPyPI: https://test.pypi.org/manage/account/token/
#
# Alternatively, set environment variables:
# TWINE_USERNAME=__token__
# TWINE_PASSWORD=pypi-<your-token>

[distutils]
index-servers =
pypi
testpypi

[pypi]
username = __token__
password = pypi-YOUR-TOKEN-HERE

[testpypi]
repository = https://test.pypi.org/legacy/
username = __token__
password = pypi-YOUR-TOKEN-HERE
13 changes: 13 additions & 0 deletions 13 .readthedocs.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: docs/requirements-docs.txt
15 changes: 0 additions & 15 deletions 15 .travis.yml
Show comments
View file
Open in desktop

This file was deleted.

Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.