diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index 33894efc0..f604b2efc 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -88,12 +88,12 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install gha-utils run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/gha-utils.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt - name: Project metadata id: project-metadata env: @@ -143,12 +143,12 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install Ruff, blacken-docs and autopep8 run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/format-python.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/format-python.txt - name: Run autopep8 if: needs.project-metadata.outputs.python_files # Ruff is not wrapping comments: https://github.com/astral-sh/ruff/issues/7414 @@ -275,7 +275,7 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Sync uv.lock run: | uv --no-progress sync --upgrade @@ -340,12 +340,12 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install mdformat run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/mdformat.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/mdformat.txt - name: Install shfmt run: | sudo apt install --yes shfmt diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index ba021eda0..f507e0906 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -43,12 +43,12 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install bump-my-version run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/changelog.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/changelog.txt - name: ${{ matrix.part }} version bump # TODO: get configuration URL once https://github.com/callowayproject/bump-my-version/issues/148 is addressed, # so we can factorize projects' pyproject.toml files to kdeldycke/workflow/pyproject.toml . @@ -122,12 +122,12 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install bump-my-version and gha-utils run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/changelog.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/changelog.txt - name: Extract version id: get_version run: > diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 63ff9acb1..2887b33fc 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -108,12 +108,12 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install gha-utils run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/gha-utils.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt - name: Generate .mailmap run: | uv --no-progress run --frozen -- gha-utils --verbosity DEBUG mailmap-sync --skip-if-missing ./.mailmap @@ -188,12 +188,12 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install gha-utils run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/gha-utils.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt - name: Project metadata id: project-metadata env: @@ -219,12 +219,12 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install pipdeptree run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/pipdeptree.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/pipdeptree.txt - name: Install project run: | uv --no-progress pip install . @@ -285,7 +285,7 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install project dependencies run: | uv --no-progress venv --system @@ -329,7 +329,7 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install project dependencies run: | uv --no-progress venv --system diff --git a/.github/workflows/labeller-content-based.yaml b/.github/workflows/labeller-content-based.yaml index bbc724f17..9dee5b4fd 100644 --- a/.github/workflows/labeller-content-based.yaml +++ b/.github/workflows/labeller-content-based.yaml @@ -37,7 +37,7 @@ jobs: - name: Download default rules run: > curl -fsSL --output ./.github/labeller-content-based.yaml - https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/.github/labeller-content-based.yaml + https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/labeller-content-based.yaml - name: Extend default rules if: inputs.extra-rules run: | diff --git a/.github/workflows/labeller-file-based.yaml b/.github/workflows/labeller-file-based.yaml index f73ad70a4..ca4753bed 100644 --- a/.github/workflows/labeller-file-based.yaml +++ b/.github/workflows/labeller-file-based.yaml @@ -34,7 +34,7 @@ jobs: - name: Download default rules run: > curl -fsSL --output ./.github/labeller-file-based.yaml - https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/.github/labeller-file-based.yaml + https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/labeller-file-based.yaml - name: Extend default rules if: inputs.extra-rules run: | diff --git a/.github/workflows/labels.yaml b/.github/workflows/labels.yaml index 7e13fefba..bccbba5c6 100644 --- a/.github/workflows/labels.yaml +++ b/.github/workflows/labels.yaml @@ -31,8 +31,8 @@ jobs: with: skip_delete: true from: | - https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/.github/labels.yaml + https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/labels.yaml ${{ inputs.extra-label-files }} ${{ ( startsWith(github.event.repository.name, 'awesome-') && github.event.repository.name != 'awesome-template' && - 'https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/.github/labels-awesome.yaml' ) || '' }} + 'https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/labels-awesome.yaml' ) || '' }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 37a76da3e..6621d4295 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -68,12 +68,12 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install gha-utils run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/gha-utils.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt - name: Project metadata id: project-metadata env: @@ -99,12 +99,12 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install Mypy run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/mypy.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/mypy.txt - name: Install package from all requirement files run: | uv --no-progress pip install --all-extras ${{ needs.project-metadata.outputs.uv_requirement_params }} @@ -158,12 +158,12 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install yamllint run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/yamllint.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/yamllint.txt - name: Run yamllint run: > uv --no-progress run --frozen -- diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e9adc75f6..4e570f82d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -58,12 +58,12 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install gha-utils run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/gha-utils.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt - name: Project metadata id: project-metadata env: @@ -93,12 +93,12 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install build dependencies run: | uv --no-progress venv --system uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/build.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt - name: Build package run: | uv --no-progress run --frozen -- python -m build @@ -134,7 +134,7 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install Nuitka # XXX We cannot break the long "pip install" line below with a class "\" because it will not be able to run on # Windows' shell: @@ -146,7 +146,7 @@ jobs: # yamllint disable rule:line-length run: | uv --no-progress venv --system - uv --no-progress pip install --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/nuitka.txt + uv --no-progress pip install --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/nuitka.txt # yamllint enable - name: Nuitka + compilers versions run: | diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7d16c2e20..a6f82f81f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -119,7 +119,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.4.4/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install project run: | uv --no-progress venv --system diff --git a/changelog.md b/changelog.md index f97c7a96d..9d845b1b0 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## [4.4.5 (unreleased)](https://github.com/kdeldycke/workflows/compare/v4.4.4...main) + +> \[!IMPORTANT\] +> This version is not released yet and is under active development. + ## [4.4.4 (2024-08-18)](https://github.com/kdeldycke/workflows/compare/v4.4.3...v4.4.4) - Fix update of changelog without past entries. diff --git a/gha_utils/__init__.py b/gha_utils/__init__.py index 8934d52e1..61befe0b6 100644 --- a/gha_utils/__init__.py +++ b/gha_utils/__init__.py @@ -17,4 +17,4 @@ from __future__ import annotations -__version__ = "4.4.4" +__version__ = "4.4.5" diff --git a/pyproject.toml b/pyproject.toml index a159807e6..5672a962a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] # Docs: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ name = "gha-utils" -version = "4.4.4" +version = "4.4.5" # Python versions and their status: https://devguide.python.org/versions/ requires-python = ">= 3.9" description = "⚙️ CLI helpers for GitHub Actions + reuseable workflows" @@ -106,7 +106,7 @@ warn_unreachable = true pretty = true [tool.bumpversion] -current_version = "4.4.4" +current_version = "4.4.5" allow_dirty = true ignore_missing_files = true