From ae5b1f5d2a24a6c9dfe27e94d4d8d486485a4af2 Mon Sep 17 00:00:00 2001 From: kdeldycke Date: Sat, 29 Jun 2024 06:09:03 +0000 Subject: [PATCH] [changelog] Release v4.0.1 --- .github/workflows/autofix.yaml | 14 +++++++------- .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 | 14 +++++++------- .github/workflows/release.yaml | 14 +++++++------- changelog.md | 5 +---- 9 files changed, 39 insertions(+), 42 deletions(-) diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index 6c4f2702a..04e0e020b 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -87,18 +87,18 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install dependencies run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/metadata.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/metadata.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uv run python -c - "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.github/metadata.py)" format-python: name: Format Python @@ -142,11 +142,11 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install Ruff, blacken-docs and autopep8 run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/format-python.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/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 @@ -297,11 +297,11 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install mdformat run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/mdformat.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/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 360c68b8c..7a476d20b 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -44,11 +44,11 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install bump-my-version run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/changelog.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/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 . @@ -121,11 +121,11 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install bump-my-version run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/changelog.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/changelog.txt - name: Extract version id: get_version run: | @@ -191,7 +191,7 @@ jobs: - name: Add new changelog entry run: > python -c "$(curl -fsSL - https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/update_changelog.py)" + https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.github/update_changelog.py)" - name: 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 . diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index c807a9368..d9212aa74 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -126,7 +126,7 @@ jobs: - name: Generate .mailmap run: > python -c "$(curl -fsSL - https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/update_mailmap.py)" + https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.github/update_mailmap.py)" - uses: peter-evans/create-pull-request@v6.1.0 with: assignees: ${{ github.actor }} @@ -198,18 +198,18 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install dependencies run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/metadata.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/metadata.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uv run python -c - "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.github/metadata.py)" update-deps-graph: name: Update dependency graph @@ -229,11 +229,11 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install pipdeptree run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/pipdeptree.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/pipdeptree.txt - name: Install project run: | uv pip install . @@ -294,7 +294,7 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install project dependencies run: | uv venv --system @@ -338,7 +338,7 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install project dependencies run: | uv venv --system diff --git a/.github/workflows/labeller-content-based.yaml b/.github/workflows/labeller-content-based.yaml index 9dee5b4fd..3766a914b 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/main/.github/labeller-content-based.yaml + https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.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 ca4753bed..50e69337f 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/main/.github/labeller-file-based.yaml + https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.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 bccbba5c6..3295ad6d2 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/main/.github/labels.yaml + https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.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/main/.github/labels-awesome.yaml' ) || '' }} + 'https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.github/labels-awesome.yaml' ) || '' }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 19c6a1900..6030c2c37 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -68,18 +68,18 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install dependencies run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/metadata.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/metadata.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uv run python -c - "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.github/metadata.py)" mypy-lint: needs: @@ -99,11 +99,11 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install Mypy run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/mypy.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/mypy.txt - name: Install package from all requirement files run: | uv pip install --all-extras ${{ needs.project-metadata.outputs.uv_requirement_params }} @@ -157,11 +157,11 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install yamllint run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/yamllint.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/yamllint.txt - name: Run yamllint run: | uv tool 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 707ed44f0..d3886c4c1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -58,18 +58,18 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install dependencies run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/metadata.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/metadata.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > uv run python -c - "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/.github/metadata.py)" package-build: name: "build & check package" @@ -93,11 +93,11 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install build dependencies run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/build.txt - name: Build package run: | uv run python -m build @@ -133,11 +133,11 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/uv.txt - name: Install Nuitka run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/nuitka.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.0.1/requirements/nuitka.txt - name: Nuitka + compilers versions run: | uv run python ${{ matrix.extra_python_params }} -m nuitka --version diff --git a/changelog.md b/changelog.md index d60d45c81..a813f5308 100644 --- a/changelog.md +++ b/changelog.md @@ -1,9 +1,6 @@ # Changelog -## [4.0.1 (unreleased)](https://github.com/kdeldycke/workflows/compare/v4.0.0...main) - -> \[!IMPORTANT\] -> This version is not released yet and is under active development. +## [4.0.1 (2024-06-29)](https://github.com/kdeldycke/workflows/compare/v4.0.0...v4.0.1) - Re-release to register PyPi project.