diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15ecf38..352015f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,12 @@ jobs: with: python-version: ${{ matrix.python-version }} + # We do not use the cache action as uv is faster than the cache action. + - name: "Install dependencies" + run: | + curl -LsSf https://astral.sh/uv/install.sh | sh + uv pip install --system --upgrade --editable .[dev] + - name: "Calver calculate version" uses: StephaneBour/actions-calver@master id: calver diff --git a/README.rst b/README.rst index 4ab8035..3c1b6b9 100644 --- a/README.rst +++ b/README.rst @@ -51,6 +51,7 @@ TODO: * Release pre-commit hook * Verbose mode... "Running command "X" against README.rst example from line ..." * Allow multiple languages (e.g. shellcheck versus shell, sh, bash) +* Add license (also to sybil-extras) .. |Build Status| image:: https://github.com/adamtheturtle/doccmd/actions/workflows/ci.yml/badge.svg?branch=main :target: https://github.com/adamtheturtle/doccmd/actions diff --git a/admin/create_pyinstaller_binaries.py b/admin/create_pyinstaller_binaries.py index 2eb0963..ef7d6ef 100644 --- a/admin/create_pyinstaller_binaries.py +++ b/admin/create_pyinstaller_binaries.py @@ -6,7 +6,10 @@ import sys from pathlib import Path +from beartype import beartype + +@beartype def remove_existing_files(scripts: set[Path]) -> None: """Remove files created when building binaries. @@ -27,6 +30,7 @@ def remove_existing_files(scripts: set[Path]) -> None: path.unlink() +@beartype def create_binary(script: Path) -> None: """Use PyInstaller to create a binary from a script. @@ -44,6 +48,7 @@ def create_binary(script: Path) -> None: subprocess.check_output(args=pyinstaller_command) +@beartype def create_binaries() -> None: """Make PyInstaller binaries for the platform that this is being run on. diff --git a/admin/release.py b/admin/release.py index 9228902..e2ae781 100644 --- a/admin/release.py +++ b/admin/release.py @@ -2,9 +2,12 @@ from pathlib import Path +from beartype import beartype + from admin.binaries import make_linux_binaries +@beartype def main() -> None: """Perform a release.""" make_linux_binaries(repo_root=Path())