From 51994db20f540701182ea7dd9007ecc87fc43308 Mon Sep 17 00:00:00 2001 From: kdeldycke Date: Wed, 6 Sep 2023 06:36:58 +0000 Subject: [PATCH] [changelog] Release v2.18.0 --- .github/workflows/autofix.yaml | 8 ++++---- .github/workflows/changelog.yaml | 14 +++++++------- .github/workflows/docs.yaml | 12 ++++++------ .github/workflows/labeller-file-based.yaml | 2 +- .github/workflows/labels.yaml | 4 ++-- .github/workflows/lint.yaml | 10 +++++----- .github/workflows/release.yaml | 12 ++++++------ changelog.md | 6 +----- 8 files changed, 32 insertions(+), 36 deletions(-) diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index ab495fcba..c7c89855e 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -52,14 +52,14 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > python -c "$(curl -fsSL - https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/.github/metadata.py)" format-python: name: Format Python @@ -78,7 +78,7 @@ jobs: - name: Install ruff, black, blacken-docs, autopep8 and docformatter run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Run Ruff # --select=ALL - Autofix everything. # Includes rules in the nursery, a collection of newer lints that are still under development. @@ -157,7 +157,7 @@ jobs: - name: Install mdformat run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Install shfmt run: | sudo apt install --yes shfmt diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index 47e5d02bb..4c9b45fe0 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -42,7 +42,7 @@ jobs: - name: Install bump-my-version run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: ${{ matrix.part }} version bump run: | bump-my-version bump --verbose ${{ matrix.part }} @@ -109,7 +109,7 @@ jobs: - name: Install bump-my-version run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Extract version id: get_version run: | @@ -124,7 +124,7 @@ jobs: # # [[tool.bumpversion.files]] # filename = ".github/workflows/*.yaml" - # search = "/workflows/main/" + # search = "/workflows/v2.18.0/" # replace = "/workflows/v{current_version}/" # # $ bump-my-version --verbose --force-current-version .github/workflows/*.yaml @@ -137,7 +137,7 @@ jobs: # $ bump-my-version # bump # --verbose --no-configured-files - # --search "/workflows/main/" + # --search "/workflows/v2.18.0/" # --replace "/workflows/v{current_version}/" # --ignore-missing # patch @@ -201,7 +201,7 @@ jobs: # [[tool.bumpversion.files]] # filename = ".github/workflows/*.yaml" # search = "/workflows/v{current_version}/" - # replace = "/workflows/main/" + # replace = "/workflows/v2.18.0/" # # $ bump-my-version --verbose --force-current-version .github/workflows/*.yaml # @@ -214,7 +214,7 @@ jobs: # bump # --verbose --no-configured-files # --search "/workflows/v{current_version}/" - # --replace "/workflows/main/" + # --replace "/workflows/v2.18.0/" # --ignore-missing # patch # ./.github/workflows/*.yaml @@ -229,7 +229,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/v2.18.0/.github/update_changelog.py)" - name: Version bump run: | bump-my-version bump --verbose patch diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 132b557c6..d5d253e05 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -115,7 +115,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/v2.18.0/.github/update_mailmap.py)" - uses: peter-evans/create-pull-request@v5.0.2 with: assignees: ${{ github.actor }} @@ -158,14 +158,14 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > python -c "$(curl -fsSL - https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/.github/metadata.py)" update-deps-graph: name: Update dependency graph @@ -184,7 +184,7 @@ jobs: - name: Install pinned pipdeptree on system run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Install project with Poetry run: | poetry install --only main --no-interaction @@ -240,7 +240,7 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Install project dependencies run: | poetry install --no-interaction @@ -282,7 +282,7 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Install project dependencies # Let sphinx-click access project's code to generate CLI help. run: | diff --git a/.github/workflows/labeller-file-based.yaml b/.github/workflows/labeller-file-based.yaml index e18f85e6d..183c8622a 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/v2.18.0/.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 9ed5acb56..e67e02b33 100644 --- a/.github/workflows/labels.yaml +++ b/.github/workflows/labels.yaml @@ -31,7 +31,7 @@ jobs: with: skip_delete: true from: | - https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/labels.yaml + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/.github/labels.yaml ${{ inputs.extra-label-files }} ${{ startsWith(github.event.repository.name, 'awesome-') && - 'https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/labels-awesome.yaml' || '' }} + 'https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/.github/labels-awesome.yaml' || '' }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ac86bff75..5bf2b9746 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -40,14 +40,14 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > python -c "$(curl -fsSL - https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/.github/metadata.py)" lint-python: needs: @@ -66,7 +66,7 @@ jobs: - name: Install Ruff run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Run Ruff # Runs with the default set of rules. Trust ruff to select a sensible subset. run: > @@ -89,7 +89,7 @@ jobs: - name: Install Poetry and Mypy run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Install project with Poetry # Install project with Poetry if supported, so we can benefits from dependencies on typing stubs. if: fromJSON(needs.project-metadata.outputs.is_poetry_project) @@ -122,7 +122,7 @@ jobs: - name: Install yamllint run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - 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 f0149ff1a..1372e4928 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -59,14 +59,14 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Project metadata id: project-metadata env: GITHUB_CONTEXT: ${{ toJSON(github) }} run: > python -c "$(curl -fsSL - https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/.github/metadata.py)" poetry-build: name: "Poetry: build & check package" @@ -89,7 +89,7 @@ jobs: - name: Install poetry, twine and check-wheel-contents run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Build package run: | poetry install --no-interaction @@ -129,7 +129,7 @@ jobs: - name: Install poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Re-install Nuitka in Poetry venv # Nuitka needs to be installed within Poetry's venv to allow for lots of workarounds. # Additional dependencies: @@ -137,7 +137,7 @@ jobs: # - zstandard: for nuitka's onefile compression run: > poetry run python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Nuitka + compilers versions run: | poetry run python -m nuitka --version @@ -183,7 +183,7 @@ jobs: - name: Install bump-my-version run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v2.18.0/requirements.txt - name: Extract version id: get_version run: | diff --git a/changelog.md b/changelog.md index 5a6bb3684..170272c33 100644 --- a/changelog.md +++ b/changelog.md @@ -1,10 +1,6 @@ # Changelog -## [2.18.0 (unreleased)](https://github.com/kdeldycke/workflows/compare/v2.17.8...main) - -```{important} -This version is not released yet and is under active development. -``` +## [2.18.0 (2023-09-06)](https://github.com/kdeldycke/workflows/compare/v2.17.8...v2.18.0) - Upgrade to `bump-my-version` `0.10.x` series. - Remove the step updating the release date of `citation.cff` in `changelog` job. This can be done with `bump-my-version` now.