From 1aefc1d5f07558c0c5d1fec2f789b2e8f788f96f Mon Sep 17 00:00:00 2001 From: kdeldycke Date: Mon, 30 Dec 2024 09:32:50 +0000 Subject: [PATCH] [changelog] Post-release version bump --- .github/workflows/autofix.yaml | 18 +++++++++--------- .github/workflows/changelog.yaml | 10 +++++----- .github/workflows/docs.yaml | 16 ++++++++-------- .github/workflows/labeller-content-based.yaml | 2 +- .github/workflows/labeller-file-based.yaml | 2 +- .github/workflows/labels.yaml | 4 ++-- .github/workflows/lint.yaml | 12 ++++++------ .github/workflows/release.yaml | 14 +++++++------- .github/workflows/tests.yaml | 2 +- changelog.md | 5 +++++ gha_utils/__init__.py | 2 +- pyproject.toml | 4 ++-- 12 files changed, 48 insertions(+), 43 deletions(-) diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index 20a461cc6..e6a4dd69a 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -52,14 +52,14 @@ jobs: fetch-depth: 0 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Run gha-utils metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uvx - --with-requirements https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/gha-utils.txt + --with-requirements https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG metadata --overwrite "$GITHUB_OUTPUT" @@ -73,15 +73,15 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 tool install --with-requirements \ - https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/ruff.txt ruff + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/ruff.txt ruff uv tool install --with-requirements \ - https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/blacken-docs.txt blacken-docs + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/blacken-docs.txt blacken-docs uv tool install --with-requirements \ - https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/autopep8.txt autopep8 + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/autopep8.txt autopep8 - name: Run autopep8 if: needs.project-metadata.outputs.python_files # Ruff is not wrapping comments: https://github.com/astral-sh/ruff/issues/7414 @@ -194,7 +194,7 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 @@ -223,11 +223,11 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install mdformat run: > uv tool install --with-requirements - https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/mdformat.txt mdformat + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/mdformat.txt mdformat - name: Install shfmt run: | sudo apt install --yes shfmt diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index e2f79d769..edb804f0e 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -35,11 +35,11 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 tool install --with-requirements - https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/bump-my-version.txt bump-my-version + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/bump-my-version.txt bump-my-version - 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 . @@ -104,13 +104,13 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 tool install --with-requirements \ - https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/bump-my-version.txt bump-my-version + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/bump-my-version.txt bump-my-version uv tool install --with-requirements \ - https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/gha-utils.txt gha-utils + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt gha-utils - name: Extract version id: get_version run: | diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index a659a8002..e90f3b54e 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -100,11 +100,11 @@ jobs: fetch-depth: 0 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install gha-utils run: > uv tool install --with-requirements - https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/gha-utils.txt gha-utils + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt gha-utils - name: Generate .mailmap run: | gha-utils --verbosity DEBUG mailmap-sync --skip-if-missing ./.mailmap @@ -143,14 +143,14 @@ jobs: fetch-depth: 0 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Run gha-utils metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uvx - --with-requirements https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/gha-utils.txt + --with-requirements https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG metadata --overwrite "$GITHUB_OUTPUT" @@ -164,12 +164,12 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 --python 3.13 uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/pipdeptree.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/pipdeptree.txt - name: Install project run: | uv --no-progress pip install . @@ -222,7 +222,7 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 --python 3.13 @@ -258,7 +258,7 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 --python 3.13 diff --git a/.github/workflows/labeller-content-based.yaml b/.github/workflows/labeller-content-based.yaml index 4685a9656..d541703c6 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.10.0/.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 a30618aa3..a431ab608 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.10.0/.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 ea79e9857..36a6749f0 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.10.0/.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.10.0/.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 e4c9687aa..1e071987a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -31,14 +31,14 @@ jobs: fetch-depth: 0 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Run gha-utils metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uvx - --with-requirements https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/gha-utils.txt + --with-requirements https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG metadata --overwrite "$GITHUB_OUTPUT" @@ -52,12 +52,12 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 --python 3.13 uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/mypy.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/mypy.txt - name: Install package # Use --inexact so that uv doesn't try to remove the mypy package installed above. run: | @@ -76,11 +76,11 @@ jobs: - uses: actions/checkout@v4.2.2 - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install yamllint run: > uv tool install --with-requirements - https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/yamllint.txt yamllint + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/yamllint.txt yamllint - name: Run yamllint run: | yamllint --strict --config-data "{rules: {line-length: {max: 120}}}" --format github . diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 00e44d15e..85b04e703 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -59,14 +59,14 @@ jobs: git log --decorate=full --oneline - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Run gha-utils metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uvx - --with-requirements https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/gha-utils.txt + --with-requirements https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/gha-utils.txt -- gha-utils --verbosity DEBUG metadata --overwrite "$GITHUB_OUTPUT" @@ -84,12 +84,12 @@ jobs: ref: ${{ matrix.commit }} - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 --python 3.13 uv --no-progress pip install \ - --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/build.txt + --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt - name: Build package run: | uv --no-progress build @@ -125,7 +125,7 @@ jobs: python-version: "3.13" - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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: @@ -137,7 +137,7 @@ jobs: # yamllint disable rule:line-length run: | uv --no-progress venv --python 3.13 --python-preference system - uv --no-progress pip install --requirement https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 # XXX Nuitka needs the ".cmd" extension on Windows: @@ -321,7 +321,7 @@ jobs: steps: - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Download build artifacts uses: actions/download-artifact@v4.1.8 id: download diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5b69f7405..2889c2f13 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -129,7 +129,7 @@ jobs: python-version: "${{ matrix.python-version }}" - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.10.0/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 --python ${{ matrix.python-version }} diff --git a/changelog.md b/changelog.md index 2b79b086d..96ad7ee69 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## [4.10.1 (unreleased)](https://github.com/kdeldycke/workflows/compare/v4.10.0...main) + +> [!IMPORTANT] +> This version is not released yet and is under active development. + ## [4.10.0 (2024-12-30)](https://github.com/kdeldycke/workflows/compare/v4.9.0...v4.10.0) - Replace unmaintained `jsonlint` by ESLint. diff --git a/gha_utils/__init__.py b/gha_utils/__init__.py index d3c141cc6..593a47994 100644 --- a/gha_utils/__init__.py +++ b/gha_utils/__init__.py @@ -17,4 +17,4 @@ from __future__ import annotations -__version__ = "4.10.0" +__version__ = "4.10.1" diff --git a/pyproject.toml b/pyproject.toml index 7feb30988..5a51136e4 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.10.0" +version = "4.10.1" # Python versions and their status: https://devguide.python.org/versions/ requires-python = ">= 3.10" description = "⚙️ CLI helpers for GitHub Actions + reuseable workflows" @@ -132,7 +132,7 @@ addopts = [ xfail_strict = true [tool.bumpversion] -current_version = "4.10.0" +current_version = "4.10.1" allow_dirty = true ignore_missing_files = true