* Add PEP 723 metadata for various `bin` scripts * Use a subprocess to install chromium * Regenerate image * Update shebangs Co-Authored-By: Henry Schreiner <HenrySchreinerIII@gmail.com> * Add cibuildwheel local dependency for some scripts Co-Authored-By: Henry Schreiner <HenrySchreinerIII@gmail.com> * Remove `bin` dependency group fully * Add CSS for styling the diagram Co-Authored-By: Joe Rickerby <1244307+joerick@users.noreply.github.com> * Restore image to original * Install `uv` for PyLint to find it * Drop setup-python too in favour of setup-uv * Revert "Drop setup-python too in favour of setup-uv" This reverts commit 663db5c253f18bd09229ea5dbf92f7f6aa8ebf1c. * Make `uv` venv backend for nox optional again --------- Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com> Co-authored-by: Joe Rickerby <1244307+joerick@users.noreply.github.com>
31 lines
801 B
Python
Executable File
31 lines
801 B
Python
Executable File
#!/usr/bin/env -S uv run --script
|
|
|
|
|
|
import argparse
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
import tempfile
|
|
from pathlib import Path
|
|
|
|
if __name__ == "__main__":
|
|
# move cwd to the project root
|
|
os.chdir(Path(__file__).resolve().parents[1])
|
|
|
|
parser = argparse.ArgumentParser(description="Runs a sample build", allow_abbrev=False)
|
|
parser.add_argument("project_python_path", nargs="?", default="test.test_0_basic.basic_project")
|
|
|
|
options = parser.parse_args()
|
|
|
|
project_dir = tempfile.mkdtemp()
|
|
subprocess.run(
|
|
[sys.executable, "-m", "test.test_projects", options.project_python_path, project_dir],
|
|
check=True,
|
|
)
|
|
|
|
sys.exit(
|
|
subprocess.run(
|
|
[sys.executable, "-m", "cibuildwheel"], cwd=project_dir, check=False
|
|
).returncode
|
|
)
|