From d7aadc17d404e81a09a5727b08f96839e41cbd81 Mon Sep 17 00:00:00 2001 From: kdeldycke Date: Thu, 20 Jun 2024 11:14:51 +0000 Subject: [PATCH] [changelog] Release v3.5.9 --- .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 | 16 ++++++++-------- .github/workflows/release.yaml | 12 ++++++------ changelog.md | 6 +----- 9 files changed, 39 insertions(+), 43 deletions(-) diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index ce7687de6..b8d4afd99 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -81,18 +81,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/v3.5.9/requirements/uv.txt - name: Install pinned Poetry 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/v3.5.9/requirements/metadata.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > source .venv/bin/activate && - python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/.github/metadata.py)" format-python: name: Format Python @@ -136,11 +136,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/v3.5.9/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/v3.5.9/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 @@ -291,11 +291,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/v3.5.9/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/v3.5.9/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 0a5a523e3..840108440 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/v3.5.9/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/v3.5.9/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/v3.5.9/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/v3.5.9/requirements/changelog.txt - name: Extract version id: get_version run: | @@ -190,7 +190,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/v3.5.9/.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 ecc9be862..f1aaa7514 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -120,7 +120,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/v3.5.9/.github/update_mailmap.py)" - uses: peter-evans/create-pull-request@v6.1.0 with: assignees: ${{ github.actor }} @@ -192,18 +192,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/v3.5.9/requirements/uv.txt - name: Install pinned Poetry 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/v3.5.9/requirements/metadata.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > source .venv/bin/activate && - python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/.github/metadata.py)" update-deps-graph: name: Update dependency graph @@ -223,11 +223,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/v3.5.9/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/v3.5.9/requirements/pipdeptree.txt - name: Install project run: | uv pip install . @@ -289,7 +289,7 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/requirements/build.txt - name: Install project dependencies run: | poetry install --with docs --no-interaction @@ -336,7 +336,7 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/requirements/build.txt - name: Install project dependencies # Let sphinx-click access project's code to generate CLI help. run: | diff --git a/.github/workflows/labeller-content-based.yaml b/.github/workflows/labeller-content-based.yaml index 9dee5b4fd..b990a9ae0 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/v3.5.9/.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..1352c0b85 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/v3.5.9/.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..6413249a2 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/v3.5.9/.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/v3.5.9/.github/labels-awesome.yaml' ) || '' }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 856b36b18..84690dab5 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -67,18 +67,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/v3.5.9/requirements/uv.txt - name: Install pinned Poetry 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/v3.5.9/requirements/metadata.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > source .venv/bin/activate && - python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/.github/metadata.py)" mypy-lint: needs: @@ -98,16 +98,16 @@ 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/v3.5.9/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/v3.5.9/requirements/mypy.txt - name: Install package with Poetry # Install Poetry, then install the package with it, as uv cannot read Poetry-flavored pyproject.toml. if: fromJSON(needs.project-metadata.outputs.is_poetry_project) run: | - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/requirements/build.txt uv tool run poetry install --all-extras --with typing --with test --no-interaction - name: Install package with uv if: ${{ ! fromJSON(needs.project-metadata.outputs.is_poetry_project) }} @@ -165,11 +165,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/v3.5.9/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/v3.5.9/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 03b597320..9e40dc786 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/v3.5.9/requirements/uv.txt - name: Install pinned Poetry 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/v3.5.9/requirements/metadata.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > source .venv/bin/activate && - python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/.github/metadata.py)" poetry-build: name: "Poetry: build & check package" @@ -97,7 +97,7 @@ jobs: - name: Install poetry, twine and check-wheel-contents run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/requirements/build.txt - name: Build package run: | poetry install --no-interaction @@ -142,12 +142,12 @@ jobs: - name: Install poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/requirements/build.txt - name: Re-install Nuitka in Poetry venv # Nuitka needs to be installed within Poetry's venv to allow for lots of workarounds. run: > poetry run python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/nuitka.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.9/requirements/nuitka.txt - name: Nuitka + compilers versions run: | poetry run python -m nuitka --version diff --git a/changelog.md b/changelog.md index 249678bcb..8a2ff6b34 100644 --- a/changelog.md +++ b/changelog.md @@ -1,10 +1,6 @@ # Changelog -## [3.5.9 (unreleased)](https://github.com/kdeldycke/workflows/compare/v3.5.8...main) - -```{important} -This version is not released yet and is under active development. -``` +## [3.5.9 (2024-06-20)](https://github.com/kdeldycke/workflows/compare/v3.5.8...v3.5.9) - Restrict removal of changelog warning admonition to `{important}` class on version bump.