diff --git a/.github/workflows/cd_release.yml b/.github/workflows/cd_release.yml index aea75155..2c1bc47e 100644 --- a/.github/workflows/cd_release.yml +++ b/.github/workflows/cd_release.yml @@ -213,7 +213,7 @@ jobs: if [ -n "${{ inputs.build_libs }}" ]; then pip install ${{ inputs.build_libs }} fi - pip install git+https://github.com/SINTEF/ci-cd.git@v2.8.3 + pip install git+https://github.com/SINTEF/ci-cd.git@v2.9.0 env: PIP_INDEX_URL: ${{ inputs.pip_index_url }} PIP_EXTRA_INDEX_URL: ${{ inputs.pip_extra_index_urls }} diff --git a/.github/workflows/ci_cd_updated_default_branch.yml b/.github/workflows/ci_cd_updated_default_branch.yml index 0bdf5b25..d601b36b 100644 --- a/.github/workflows/ci_cd_updated_default_branch.yml +++ b/.github/workflows/ci_cd_updated_default_branch.yml @@ -252,7 +252,7 @@ jobs: python -m pip install --upgrade pip pip install -U setuptools wheel pip install ${EDITABLE}.${{ inputs.doc_extras }} - pip install git+https://github.com/SINTEF/ci-cd.git@v2.8.3 + pip install git+https://github.com/SINTEF/ci-cd.git@v2.9.0 INSTALLED_PACKAGES=$(pip freeze) if [ "${{ inputs.docs_framework }}" == "mkdocs" ]; then diff --git a/.github/workflows/ci_check_pyproject_dependencies.yml b/.github/workflows/ci_check_pyproject_dependencies.yml index 44156138..77c2f734 100644 --- a/.github/workflows/ci_check_pyproject_dependencies.yml +++ b/.github/workflows/ci_check_pyproject_dependencies.yml @@ -156,7 +156,7 @@ jobs: python -m pip install -U ${VERBOSE} pip pip install -U ${VERBOSE} setuptools wheel pip install ${VERBOSE} .${{ inputs.install_extras }} - pip install ${VERBOSE} git+https://github.com/SINTEF/ci-cd.git@v2.8.3 + pip install ${VERBOSE} git+https://github.com/SINTEF/ci-cd.git@v2.9.0 env: PIP_INDEX_URL: ${{ inputs.pip_index_url }} PIP_EXTRA_INDEX_URL: ${{ inputs.pip_extra_index_urls }} diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index edba1685..7cf674ac 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -446,7 +446,7 @@ jobs: python -m pip install -U pip pip install -U setuptools wheel pip install ${EDITABLE}.${{ inputs.install_extras }} - pip install git+https://github.com/SINTEF/ci-cd.git@v2.8.3 + pip install git+https://github.com/SINTEF/ci-cd.git@v2.9.0 env: PIP_INDEX_URL: ${{ inputs.pip_index_url_docs }} PIP_EXTRA_INDEX_URL: ${{ inputs.pip_extra_index_urls_docs }} diff --git a/CHANGELOG.md b/CHANGELOG.md index eb04d1d7..d5e13e26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,55 @@ # Changelog +## [Unreleased](https://github.com/SINTEF/ci-cd/tree/HEAD) + +[Full Changelog](https://github.com/SINTEF/ci-cd/compare/v2.9.0...HEAD) + +## Update Python version support + +Drop Python 3.9 support, while adding Python 3.14 support. + +### DX + +Several updates for developer tools and dependencies. + +## [v2.9.0](https://github.com/SINTEF/ci-cd/tree/v2.9.0) (2025-01-21) + +[Full Changelog](https://github.com/SINTEF/ci-cd/compare/v2.8.3...v2.9.0) + +## Update Python version support + +Drop Python 3.9 support, while adding Python 3.14 support. + +### DX + +Several updates for developer tools and dependencies. + +**Implemented enhancements:** + +- Support Python 3.14 \(pre\) [\#294](https://github.com/SINTEF/ci-cd/issues/294) + +**Closed issues:** + +- Example for using trusted puclihser uses wrong key [\#299](https://github.com/SINTEF/ci-cd/issues/299) + +**Merged pull requests:** + +- Remove support for Python 3.7 [\#315](https://github.com/SINTEF/ci-cd/pull/315) ([CasperWA](https://github.com/CasperWA)) +- \[pre-commit.ci\] pre-commit autoupdate [\#314](https://github.com/SINTEF/ci-cd/pull/314) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- \[pre-commit.ci\] pre-commit autoupdate [\#313](https://github.com/SINTEF/ci-cd/pull/313) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- \[pre-commit.ci\] pre-commit autoupdate [\#312](https://github.com/SINTEF/ci-cd/pull/312) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- \[Auto-generated\] Update dependencies [\#311](https://github.com/SINTEF/ci-cd/pull/311) ([TEAM4-0](https://github.com/TEAM4-0)) +- \[pre-commit.ci\] pre-commit autoupdate [\#309](https://github.com/SINTEF/ci-cd/pull/309) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- \[Auto-generated\] Update dependencies [\#308](https://github.com/SINTEF/ci-cd/pull/308) ([TEAM4-0](https://github.com/TEAM4-0)) +- \[pre-commit.ci\] pre-commit autoupdate [\#307](https://github.com/SINTEF/ci-cd/pull/307) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- \[pre-commit.ci\] pre-commit autoupdate [\#306](https://github.com/SINTEF/ci-cd/pull/306) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- \[pre-commit.ci\] pre-commit autoupdate [\#304](https://github.com/SINTEF/ci-cd/pull/304) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- \[pre-commit.ci\] pre-commit autoupdate [\#303](https://github.com/SINTEF/ci-cd/pull/303) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- \[pre-commit.ci\] pre-commit autoupdate [\#301](https://github.com/SINTEF/ci-cd/pull/301) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- Corrected a typo in pypi publishing example, package-dir -\> packages-dir [\#300](https://github.com/SINTEF/ci-cd/pull/300) ([francescalb](https://github.com/francescalb)) +- \[pre-commit.ci\] pre-commit autoupdate [\#298](https://github.com/SINTEF/ci-cd/pull/298) ([pre-commit-ci[bot]](https://github.com/apps/pre-commit-ci)) +- Add support for Python 3.14 [\#295](https://github.com/SINTEF/ci-cd/pull/295) ([CasperWA](https://github.com/CasperWA)) + ## [v2.8.3](https://github.com/SINTEF/ci-cd/tree/v2.8.3) (2024-10-15) [Full Changelog](https://github.com/SINTEF/ci-cd/compare/v2.8.2...v2.8.3) diff --git a/ci_cd/__init__.py b/ci_cd/__init__.py index aa7e3818..0a94b6e5 100644 --- a/ci_cd/__init__.py +++ b/ci_cd/__init__.py @@ -4,7 +4,7 @@ import logging -__version__ = "2.8.3" +__version__ = "2.9.0" __author__ = "Casper Welzel Andersen" __author_email__ = "casper.w.andersen@sintef.no" diff --git a/docs/hooks/docs_api_reference.md b/docs/hooks/docs_api_reference.md index e4266bf5..92dc36a2 100644 --- a/docs/hooks/docs_api_reference.md +++ b/docs/hooks/docs_api_reference.md @@ -58,7 +58,7 @@ It is meant to be complete as is. ```yaml repos: - repo: https://github.com/SINTEF/ci-cd - rev: v2.8.3 + rev: v2.9.0 hooks: - id: docs-api-reference args: diff --git a/docs/hooks/docs_landing_page.md b/docs/hooks/docs_landing_page.md index 02a8ca70..3ac1f8c7 100644 --- a/docs/hooks/docs_landing_page.md +++ b/docs/hooks/docs_landing_page.md @@ -32,7 +32,7 @@ It is meant to be complete as is. ```yaml repos: - repo: https://github.com/SINTEF/ci-cd - rev: v2.8.3 + rev: v2.9.0 hooks: - id: docs-landing-page args: diff --git a/docs/hooks/update_pyproject.md b/docs/hooks/update_pyproject.md index c1181083..b57e4266 100644 --- a/docs/hooks/update_pyproject.md +++ b/docs/hooks/update_pyproject.md @@ -66,7 +66,7 @@ It is meant to be complete as is. ```yaml repos: - repo: https://github.com/SINTEF/ci-cd - rev: v2.8.3 + rev: v2.9.0 hooks: - id: update-pyproject args: diff --git a/docs/index.md b/docs/index.md index 1c198b11..ac32599a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,6 +1,6 @@ # CI/CD tools -**Current version to use:** `v2.8.3` +**Current version to use:** `v2.9.0` !!! warning "Important" The default for `publish_on_pypi` in the [_CD - Release_ workflow](./workflows/cd_release.md) has changed from `true` to `false` in version `2.8.0`. diff --git a/docs/workflows/cd_release.md b/docs/workflows/cd_release.md index a380eda1..5eca329e 100644 --- a/docs/workflows/cd_release.md +++ b/docs/workflows/cd_release.md @@ -63,7 +63,7 @@ jobs: build: name: Build distribution & publish documentation if: github.repository == 'SINTEF/my-python-package' && startsWith(github.ref, 'refs/tags/v') - uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.9.0 with: # General git_username: "Casper Welzel Andersen" @@ -120,7 +120,7 @@ jobs: The content of repository files can be updated to use the new version where necessary. This is done through the `version_update_changes` (and `version_update_changes_separator`) inputs. -To see an example of how to use the `version_update_changes` (and `version_update_changes_separator`) see for example the [workflow used by the SINTEF/ci-cd repository](https://github.com/SINTEF/ci-cd/blob/v2.8.3/.github/workflows/_local_cd_release.yml) calling the _CD Release_ workflow. +To see an example of how to use the `version_update_changes` (and `version_update_changes_separator`) see for example the [workflow used by the SINTEF/ci-cd repository](https://github.com/SINTEF/ci-cd/blob/v2.9.0/.github/workflows/_local_cd_release.yml) calling the _CD Release_ workflow. Some notes to consider and respect when using `version_update_changes` are: @@ -235,7 +235,7 @@ on: jobs: publish: name: Publish package and documentation - uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.9.0 if: github.repository == 'SINTEF/my-python-package' && startsWith(github.ref, 'refs/tags/v') with: # General diff --git a/docs/workflows/ci_automerge_prs.md b/docs/workflows/ci_automerge_prs.md index fdaaac1f..fac0f1d9 100644 --- a/docs/workflows/ci_automerge_prs.md +++ b/docs/workflows/ci_automerge_prs.md @@ -56,7 +56,7 @@ on: jobs: update-dependency-branch: name: Call external workflow - uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.9.0 if: github.repository_owner == 'SINTEF' && ( ( startsWith(github.event.pull_request.head.ref, 'dependabot/') && github.actor == 'dependabot[bot]' ) || ( github.event.pull_request.head.ref == 'ci/update-pyproject' && github.actor == 'CasperWA' ) ) secrets: PAT: ${{ secrets.RELEASE_PAT }} @@ -77,7 +77,7 @@ on: jobs: update-dependency-branch: name: Call external workflow - uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.9.0 if: github.repository_owner == 'SINTEF' && ( ( startsWith(github.event.pull_request.head.ref, 'dependabot/') && github.actor == 'dependabot[bot]' ) || ( github.event.pull_request.head.ref == 'ci/update-pyproject' && github.actor == 'CasperWA' ) ) with: perform_changes: true @@ -101,7 +101,7 @@ on: jobs: update-dependency-branch: name: Call external workflow - uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.9.0 if: github.repository_owner == 'SINTEF' && ( ( startsWith(github.event.pull_request.head.ref, 'dependabot/') && github.actor == 'dependabot[bot]' ) || ( github.event.pull_request.head.ref == 'ci/update-pyproject' && github.actor == 'CasperWA' ) ) with: perform_changes: true diff --git a/docs/workflows/ci_cd_updated_default_branch.md b/docs/workflows/ci_cd_updated_default_branch.md index b11fb265..889f7a0d 100644 --- a/docs/workflows/ci_cd_updated_default_branch.md +++ b/docs/workflows/ci_cd_updated_default_branch.md @@ -106,7 +106,7 @@ on: jobs: updates-to-stable: name: Call external workflow - uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.9.0 if: github.repository_owner == 'SINTEF' with: git_username: "Casper Welzel Andersen" diff --git a/docs/workflows/ci_check_pyproject_dependencies.md b/docs/workflows/ci_check_pyproject_dependencies.md index 65bce81a..5116594a 100644 --- a/docs/workflows/ci_check_pyproject_dependencies.md +++ b/docs/workflows/ci_check_pyproject_dependencies.md @@ -37,7 +37,7 @@ Here is an example of different lines given as value for the `ignore` option tha # ... jobs: check-dependencies: - uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.9.0 with: # ... # For Sphinx, ignore all updates for/from version 4.5.0 and up / keep the minimum version for Sphinx at 4.5.0. @@ -99,7 +99,7 @@ on: jobs: check-dependencies: name: Call external workflow - uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.9.0 if: github.repository_owner == 'SINTEF' with: git_username: "Casper Welzel Andersen" diff --git a/docs/workflows/ci_tests.md b/docs/workflows/ci_tests.md index c0528097..aad419ad 100644 --- a/docs/workflows/ci_tests.md +++ b/docs/workflows/ci_tests.md @@ -177,7 +177,7 @@ on: jobs: tests: name: Run basic tests - uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.9.0 with: python_version_pylint_safety: "3.8" python_version_docs: "3.9" @@ -205,7 +205,7 @@ on: jobs: tests: name: Run basic tests - uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.9.0 with: python_version_pylint_safety: "3.8" python_version_docs: "3.9" diff --git a/docs/workflows/ci_update_dependencies.md b/docs/workflows/ci_update_dependencies.md index 5a405d8a..8788d892 100644 --- a/docs/workflows/ci_update_dependencies.md +++ b/docs/workflows/ci_update_dependencies.md @@ -68,7 +68,7 @@ on: jobs: check-dependencies: name: Call external workflow - uses: SINTEF/ci-cd/.github/workflows/ci_update_dependencies.yml@v2.8.3 + uses: SINTEF/ci-cd/.github/workflows/ci_update_dependencies.yml@v2.9.0 if: github.repository_owner == 'SINTEF' with: git_username: "Casper Welzel Andersen"