Skip to content

Commit

Permalink
Merge pull request #9 from adamtheturtle/homebrew
Browse files Browse the repository at this point in the history
Install dev requirements in release
  • Loading branch information
adamtheturtle authored Sep 11, 2024
2 parents d8dcec8 + 985c722 commit dfb0334
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions admin/create_pyinstaller_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions admin/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit dfb0334

Please sign in to comment.