From 96aa95226dc5e7ea2c470c64b1d93beb11ff9cc3 Mon Sep 17 00:00:00 2001 From: kdeldycke Date: Thu, 18 Apr 2024 14:15:05 +0000 Subject: [PATCH] [changelog] Release v3.4.5 --- .github/workflows/autofix.yaml | 8 ++++---- .github/workflows/changelog.yaml | 6 +++--- .github/workflows/docs.yaml | 14 +++++++------- .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 | 10 +++++----- changelog.md | 6 +----- 9 files changed, 30 insertions(+), 34 deletions(-) diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index c33ac7707..e8a005920 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -85,14 +85,14 @@ jobs: # uv needs a venv. See: https://github.com/astral-sh/uv/issues/1374 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.4.5/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)" + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/.github/metadata.py)" format-python: name: Format Python @@ -139,7 +139,7 @@ jobs: - name: Install Ruff, blacken-docs and autopep8 run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/format-python.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/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 @@ -293,7 +293,7 @@ jobs: - name: Install mdformat run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/mdformat.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/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 ad2b231bf..9144ac859 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -47,7 +47,7 @@ jobs: - name: Install bump-my-version run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/changelog.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/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 . @@ -123,7 +123,7 @@ jobs: - name: Install bump-my-version run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/changelog.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/requirements/changelog.txt - name: Extract version id: get_version run: | @@ -187,7 +187,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.4.5/.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 2f2924b5a..d568bf117 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -119,7 +119,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.4.5/.github/update_mailmap.py)" - uses: peter-evans/create-pull-request@v6.0.4 with: assignees: ${{ github.actor }} @@ -195,14 +195,14 @@ jobs: # uv needs a venv. See: https://github.com/astral-sh/uv/issues/1374 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.4.5/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)" + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/.github/metadata.py)" update-deps-graph: name: Update dependency graph @@ -225,9 +225,9 @@ jobs: - name: Install pipdeptree and Poetry on system run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/pipdeptree.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/requirements/pipdeptree.txt --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/requirements/build.txt - name: Install project with Poetry run: | poetry install --only main --no-interaction @@ -290,7 +290,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.4.5/requirements/build.txt - name: Install project dependencies run: | poetry install --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.4.5/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 03e48a097..26a087a94 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.4.5/.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 a52972db4..38c0c5f52 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.4.5/.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 e7dd3d2b8..52e8442e6 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.4.5/.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.4.5/.github/labels-awesome.yaml' ) || '' }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ceab2d752..7d02ee426 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -71,14 +71,14 @@ jobs: # uv needs a venv. See: https://github.com/astral-sh/uv/issues/1374 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.4.5/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)" + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/.github/metadata.py)" mypy-lint: needs: @@ -101,12 +101,12 @@ jobs: - name: Install Mypy run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/mypy.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/requirements/mypy.txt - name: Install Poetry if: fromJSON(needs.project-metadata.outputs.is_poetry_project) run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/requirements/build.txt - name: Install dependencies 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) @@ -116,7 +116,7 @@ jobs: if: ${{ ! fromJSON(needs.project-metadata.outputs.is_poetry_project) }} run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/requirements.txt - name: Run Poetry's Mypy if: fromJSON(needs.project-metadata.outputs.is_poetry_project) run: > @@ -176,7 +176,7 @@ jobs: - name: Install yamllint run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/yamllint.txt + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/requirements/yamllint.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 722e9d85e..9da4fb8af 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -62,14 +62,14 @@ jobs: # uv needs a venv. See: https://github.com/astral-sh/uv/issues/1374 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.4.5/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)" + https://raw.githubusercontent.com/kdeldycke/workflows/v3.4.5/.github/metadata.py)" poetry-build: name: "Poetry: build & check package" @@ -96,7 +96,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.4.5/requirements/build.txt - name: Build package run: | poetry install --no-interaction @@ -142,7 +142,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.4.5/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. # Additional dependencies: @@ -150,7 +150,7 @@ jobs: # - zstandard: for nuitka's onefile compression 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.4.5/requirements/nuitka.txt - name: Nuitka + compilers versions run: | poetry run python -m nuitka --version diff --git a/changelog.md b/changelog.md index ff92f4cd6..b4719026b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,10 +1,6 @@ # Changelog -## [3.4.5 (unreleased)](https://github.com/kdeldycke/workflows/compare/v3.4.4...main) - -```{important} -This version is not released yet and is under active development. -``` +## [3.4.5 (2024-04-18)](https://github.com/kdeldycke/workflows/compare/v3.4.4...v3.4.5) - Support dependency graph generation for both package and non-package Poetry projects. - Provides venv's Python to `pipdeptree` to bypass non-detection of active venv.