Skip to content
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.

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

Install dev requirements in release #9

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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