From 75379484e98dfcf1c31d804c19672e1b9a7b9900 Mon Sep 17 00:00:00 2001 From: kdeldycke Date: Thu, 23 May 2024 12:55:41 +0000 Subject: [PATCH] [changelog] Post-release version bump --- .github/workflows/autofix.yaml | 10 +++++----- .github/workflows/changelog.yaml | 6 +++--- .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 | 12 ++++++------ changelog.md | 6 ++++++ pyproject.toml | 2 +- 10 files changed, 40 insertions(+), 34 deletions(-) diff --git a/.github/workflows/autofix.yaml b/.github/workflows/autofix.yaml index 9914be201..f1063fdd3 100644 --- a/.github/workflows/autofix.yaml +++ b/.github/workflows/autofix.yaml @@ -80,18 +80,18 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install pinned Poetry run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/metadata.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/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/v3.5.3/.github/metadata.py)" + python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" format-python: name: Format Python @@ -138,7 +138,7 @@ jobs: - name: Install Ruff, blacken-docs and autopep8 run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/format-python.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/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 @@ -292,7 +292,7 @@ jobs: - name: Install mdformat run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/mdformat.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/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 d02a544a8..4bbacd024 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/v3.5.3/requirements/changelog.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/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/v3.5.3/requirements/changelog.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/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/v3.5.3/.github/update_changelog.py)" + https://raw.githubusercontent.com/kdeldycke/workflows/main/.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 643380773..905c3b2f7 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/v3.5.3/.github/update_mailmap.py)" + https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/update_mailmap.py)" - uses: peter-evans/create-pull-request@v6.0.5 with: assignees: ${{ github.actor }} @@ -190,18 +190,18 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install pinned Poetry run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/metadata.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/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/v3.5.3/.github/metadata.py)" + python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" update-deps-graph: name: Update dependency graph @@ -224,9 +224,9 @@ jobs: - name: Install pipdeptree and Poetry on system run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/pipdeptree.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/pipdeptree.txt --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt - name: Install project with Poetry run: | poetry install --only main --no-interaction @@ -285,7 +285,7 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt - name: Install project dependencies run: | poetry install --with docs --no-interaction @@ -331,7 +331,7 @@ jobs: - name: Install Poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/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 76297aa84..135b95935 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/v3.5.3/.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 8ac0057b8..c50db1738 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/v3.5.3/.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 d38c3ee2d..67ec1935c 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/v3.5.3/.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/v3.5.3/.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 d54dcf61b..809cf45e1 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -66,18 +66,18 @@ jobs: rm ./pyproject.toml - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install pinned Poetry run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/metadata.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/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/v3.5.3/.github/metadata.py)" + python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" mypy-lint: needs: @@ -97,16 +97,16 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install Mypy run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/mypy.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/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/v3.5.3/requirements/build.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt poetry install --all-extras --with typing --with test --no-interaction - name: Install package with uv if: ${{ ! fromJSON(needs.project-metadata.outputs.is_poetry_project) }} @@ -167,7 +167,7 @@ jobs: - name: Install yamllint run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/yamllint.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/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 c72b9569c..5d6759df1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -57,18 +57,18 @@ jobs: requirements/*.txt - name: Install uv run: | - python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/uv.txt + python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/uv.txt - name: Install pinned Poetry run: | uv venv --system - uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/metadata.txt + uv pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/main/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/v3.5.3/.github/metadata.py)" + python -c "$(curl -fsSL https://raw.githubusercontent.com/kdeldycke/workflows/main/.github/metadata.py)" poetry-build: name: "Poetry: build & check package" @@ -95,7 +95,7 @@ jobs: - name: Install poetry, twine and check-wheel-contents run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/build.txt - name: Build package run: | poetry install --no-interaction @@ -141,12 +141,12 @@ jobs: - name: Install poetry run: > python -m pip install --requirement - https://raw.githubusercontent.com/kdeldycke/workflows/v3.5.3/requirements/build.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/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/v3.5.3/requirements/nuitka.txt + https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/nuitka.txt - name: Nuitka + compilers versions run: | poetry run python -m nuitka --version diff --git a/changelog.md b/changelog.md index e16c87a76..cab5ed2b3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## [3.5.4 (unreleased)](https://github.com/kdeldycke/workflows/compare/v3.5.3...main) + +```{important} +This version is not released yet and is under active development. +``` + ## [3.5.3 (2024-05-23)](https://github.com/kdeldycke/workflows/compare/v3.5.2...v3.5.3) - Pin `uv` version everywhere to improve stability. diff --git a/pyproject.toml b/pyproject.toml index c9db38520..37cd92a20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "3.5.3" +current_version = "3.5.4" allow_dirty = true ignore_missing_files = true