Skip to content

build(deps): bump python-semantic-release/python-semantic-release from 10.6.2 to 10.7.0 - #516

Merged
feanil merged 1 commit into
mainfrom
dependabot/github_actions/python-semantic-release/python-semantic-release-10.7.0
Oct 7, 2026
Merged

feanil merged 1 commit into
mainfrom
dependabot/github_actions/python-semantic-release/python-semantic-release-10.7.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 5, 2026

Copy link
Copy Markdown
Contributor

Bumps python-semantic-release/python-semantic-release from 10.6.2 to 10.7.0.

Release notes

Sourced from python-semantic-release/python-semantic-release's releases.

v10.7.0 (2026-09-22)

This release is published under the MIT License.

✨ Features

  • cmd-stamp: Expand version stamp mechanism to support typed python variables (PR#1485, 947c57b)

  • cmd-version: Add optional git --signoff to version commits (PR#1492, 3cecbeb)

📖 Documentation

  • configuration: Added signoff_commit setting definition (PR#1492, 3cecbeb)

  • configuration: Document Python type annotation support for version_variables (PR#1485, 947c57b)

⚙️ Build System

  • deps: Correct click range specification for python3.10+ (PR#1486, e4b3bad)

  • deps: Expand click dependency range to include v8.5.* (PR#1489, fa87c95)

💡 Additional Release Information

  • cmd-version: With this release, we added a boolean flag, semantic_release.signoff_commit, as an available configuration option to toggle the addition of the Signed-off-by git trailer/footer message to release commits made by Python Semantic Release. Default is currently set to False but if you want to try this option, set this configuration setting to True. In a future major release, this setting will be set to True by default.

✅ Resolved Issues

  • #1441: feat: add option to signoff commits made by python-semantic-release

  • #1443: feat: extend version_variables to replace vars with python type annotations


Detailed Changes: v10.6.2...v10.7.0


Installable artifacts are available from:

Changelog

Sourced from python-semantic-release/python-semantic-release's changelog.

.. _changelog:

========= CHANGELOG

.. _changelog-v10.7.0:

v10.7.0 (2026-09-22)

✨ Features

  • cmd-stamp: Expand version stamp mechanism to support typed python variables, closes [#1443](https://github.com/python-semantic-release/python-semantic-release/issues/1443)_ (PR#1485, 947c57b)

  • cmd-version: Add optional git --signoff to version commits, closes [#1441](https://github.com/python-semantic-release/python-semantic-release/issues/1441)_ (PR#1492, 3cecbeb)

📖 Documentation

  • configuration: Added signoff_commit setting definition (PR#1492, 3cecbeb)

  • configuration: Document Python type annotation support for version_variables (PR#1485, 947c57b)

⚙️ Build System

  • deps: Correct click range specification for python3.10+ (PR#1486, e4b3bad)

  • deps: Expand click dependency range to include v8.5.* (PR#1489, fa87c95)

💡 Additional Release Information

  • cmd-version: With this release, we added a boolean flag, semantic_release.signoff_commit, as an available configuration option to toggle the addition of the Signed-off-by git trailer/footer message to release commits made by Python Semantic Release. Default is currently set to False but if you want to try this option, set this configuration setting to True. In a future major release, this setting will be set to True by default.

.. _#1441: python-semantic-release/python-semantic-release#1441 .. _#1443: python-semantic-release/python-semantic-release#1443 .. _3cecbeb: python-semantic-release/python-semantic-release@3cecbeb .. _947c57b: python-semantic-release/python-semantic-release@947c57b .. _e4b3bad: python-semantic-release/python-semantic-release@e4b3bad .. _fa87c95: python-semantic-release/python-semantic-release@fa87c95

... (truncated)

Commits
  • b700dbe chore: release v10.7.0
  • 3cecbeb feat(cmd-version): add optional git --signoff to version commits (#1492)
  • 0f4d414 build(deps-dev): expand filelock compatibility range to include v4.0+ (#1...
  • 35f7674 ci(deps): bump docker/[email protected] to v7.4.0 (#1495)
  • fa87c95 build(deps): expand click dependency range to include v8.5.* (#1489)
  • 4e78311 test(fixtures): adjust git monorepo creation fixtures to prevent race conditi...
  • 1d56d3a test(cmd-version): refactor imports to new flatdict variant
  • 1c48576 build(deps-test): swap broken flatdict with cj365-flatdict variant
  • f77ed51 ci(deps): bump mikepenz/[email protected] to v6.5.0 (#1484)
  • 086cf14 test(fixtures): adjust git repo creation fixtures to prevent race conditions ...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Oct 5, 2026
@feanil
feanil merged commit 53fa30f into main Oct 7, 2026
8 checks passed
@feanil
feanil deleted the dependabot/github_actions/python-semantic-release/python-semantic-release-10.7.0 branch October 7, 2026 16:11
arbrandes pushed a commit to arbrandes/openedx-authz that referenced this pull request Oct 23, 2026
…se (openedx#371)

* refactor: move package to src/ layout

Adopt the src/ layout for openedx_authz per the 2026-07-15 decision on
openedx/public-engineering#506: move openedx_authz/ -> src/openedx_authz/
so editable installs resolve correctly for tools like mypy (flat-layout
editable installs are not reliably resolvable).

Update every hardcoded flat-path reference to the new location:
MANIFEST.in, .coveragerc source, docs/conf.py (version-file path and the
sphinx-apidoc source paths), tox.ini (pytest --cov/--ignore and the
quality testenv's pylint/ruff/pydocstyle targets), and the Makefile's
translation targets (extract/compile/detect/pull/dummy_translations,
ruff format/check).

pyproject.toml's [tool.setuptools.packages.find] where=["src"] wiring
lands in the next commit alongside the rest of the metadata migration.

* feat: consolidate package metadata into pyproject.toml

Replace setup.py/setup.cfg with PEP 621 static metadata in
pyproject.toml. setuptools-scm now derives the version from git tags
(fallback_version = "0.0.0"); the hardcoded __version__ in
openedx_authz/__init__.py is removed since nothing else in the repo
reads it beyond docs/conf.py, which now gets the version via
importlib.metadata instead of regex-parsing __init__.py.

Coverage configuration is consolidated from .coveragerc into
[tool.coverage.*]. The dead [isort]/[wheel] settings from setup.cfg are
ported into [tool.isort] verbatim (import sorting is actually enforced
via ruff's "I" rule per the CHANGELOG's prior pycodestyle/isort -> ruff
migration, but the old isort section is preserved rather than silently
dropped).

Also fixes a pre-existing MANIFEST.in/README.rst mismatch: the repo's
license file is named `LICENSE` (no extension), but both referenced the
nonexistent `LICENSE.txt`.

Part of openedx/public-engineering#506, tracked in openedx#516.

* feat: switch dependency management from pip-compile to uv

Replace requirements/*.in/*.txt with PEP 735 dependency groups in
pyproject.toml (test-base, test, quality, doc, ci, dev), resolved into
a committed uv.lock. Populate [tool.uv].constraint-dependencies via
`edx_lint write_uv_constraints` and add the (currently empty)
[tool.edx_lint].uv_constraints override point.

Update tox.ini to use tox-uv (uv-venv-lock-runner) and dependency_groups
instead of -r requirements/*.txt. Update the Makefile's upgrade/quality/
format/requirements/test/diff_cover/test-all targets to go through
`uv run`/`uv sync`/`uv lock` instead of pip-compile/pip-sync. Update
.readthedocs.yaml to install via `uv sync --group doc`. Drop the now-
stale requirements/ references from MANIFEST.in and .gitignore.

Update the CI workflow to install uv via astral-sh/setup-uv (SHA-pinned,
with caching), sync via `uv sync --group ci`, and run each tox env via
`uv run tox -e <env>`; add `fetch-depth: 0` so setuptools-scm can see
tags during test runs, and `permissions: contents: read`.

While verifying the full tox matrix locally post-migration, found and
fixed a real bug surfaced by the src/ layout move: three tests in
test_enforcer.py opened `openedx_authz/engine/config/{model.conf,
authz.policy}` as paths relative to the process cwd rather than via the
package's own ROOT_DIRECTORY (as settings/common.py and settings/test.py
already correctly do), so they broke once the package moved under src/.

Part of openedx/public-engineering#506, tracked in openedx#516.

* feat: add semantic-release and OIDC PyPI publish workflow

Add python-semantic-release configuration to pyproject.toml
(major_on_zero = false, allow_zero_version = true; build_command uses
python -m build since python-semantic-release's action environment
doesn't have uv available) and a release.yml workflow that runs the CI
suite, cuts a release with python-semantic-release on pushes to main,
and publishes to PyPI via OIDC trusted publishing (no stored API
token). ci.yml now triggers on workflow_call instead of push, since
release.yml owns that path (avoids running the suite twice on main).

Replace the old tag-triggered, token-based pypi-publish.yml (built
`python setup.py sdist bdist_wheel` and used an unpinned
`pypa/gh-action-pypi-publish@release/v1` ref with a stored
PYPI_UPLOAD_TOKEN) -- it would otherwise race release.yml's OIDC
publish on the first semantic-release tag. pypa/gh-action-pypi-publish
is pinned to a commit SHA (release/v1 is a floating branch, not a
version tag: confirmed root cause of a real production failure on a
sibling repo in this effort); the python-semantic-release and
actions/{upload,download}-artifact actions use plain version tags
matching openedx/XBlock's actual, currently-releasing release.yml,
per the org-wide lesson that hand-verified SHA pins for those four
actions were wrong in 3 of 5 audited sibling PRs.

Pre-flight check: latest git tag v1.21.1 (via --sort=-v:refname)
matches the version currently live on PyPI (1.21.1).

Part of openedx/public-engineering#506, tracked in openedx#516.

* feat: enable semantic-release changelog generation

Wire up python-semantic-release to update the existing CHANGELOG.rst
in place instead of skipping changelog generation:

- Add the `.. changelog-insertion-marker` line to CHANGELOG.rst so PSR
  knows where to insert new version sections above the existing
  hand-written history.
- Remove `changelog: "false"` from release.yml's PSR step.
- Add `[tool.semantic_release.changelog]` config (update mode, RST
  output) to pyproject.toml.
- Add `tag_format = "v{version}"` to match this repo's actual tag
  convention (e.g. v1.21.1), which was previously unset and would have
  caused PSR to silently ignore all existing release history.

* fix: remove obsolete version-bump/changelog checklist items from PR template

Both are now handled automatically by python-semantic-release on merge
to main, so asking contributors to manually bump the version or add a
changelog entry is stale advice left over from before this migration.

* fix: restore __version__ via importlib.metadata in __init__.py

An earlier pass of the pyproject.toml/setuptools-scm migration removed
the hardcoded __version__ string (correctly, since it would go stale
under scm-derived versioning) but never added the importlib.metadata
replacement used by sibling repos in this effort. Grepped the repo for
other __version__ consumers first: none found (docs/conf.py already
reads the installed distribution version directly via
importlib.metadata, independent of this attribute), so this is a
straightforward, safe addition.

* fix: disable python-semantic-release changelog generation

Set changelog: "false" on the PSR release step and remove the
[tool.semantic_release.changelog] config / insertion marker.

Checked against openedx/XBlock's actual production release.yml (the one
repo in this effort that has cut real automated releases) -- every run
passes changelog: false and invokes `semantic-release -v version
--no-changelog`, and the repo has zero github-actions[bot] commits ever.
The auto-changelog config this migration previously added was only ever
verified via a local dry-run prototype, never against a real release.

feanil flagged the same issue on openedx/DoneXBlock#388: "I thought we
were not going to add changelogs since they can't be updated by
python-semantic-release the way we have it setup."

* fix: create GitHub release with assets attached, not after publish

This repo has immutable releases enabled, which freezes a release's assets the moment it's published. The old flow (main PSR step publishes the release, a separate publish-action step attaches assets afterward) can never work under that constraint -- it would 422 on the first real release. Matches the fix already proven and merged on openedx/sample-plugin#57 and validated end-to-end on openedx/event-tracking#434: build without publishing (vcs_release: false), then create the release with dist/* attached in one gh release create call.

* fix: pin release.yml actions to sample-plugin gold-standard SHAs

The release workflow had several conformance gaps against
openedx/sample-plugin's release.yml, this org's Phase 3 reference:

- python-semantic-release, actions/upload-artifact, and
  actions/download-artifact were referenced by floating version tags
  (v10.6.1, v7, v8) instead of pinned commit SHAs, defeating the
  supply-chain pinning the rest of the migration established. PSR was
  also a version behind (v10.6.1 vs the reference's v10.6.2).
- pypa/gh-action-pypi-publish was pinned but to an outdated v1.14.1
  SHA instead of the reference's v1.14.2.
- The dist upload step lacked if-no-files-found: error, so a build
  that silently produced no artifacts would upload nothing instead of
  failing loudly.
- publish_to_pypi's if-condition only checked
  needs.release.outputs.released, omitting the
  github.ref_name == 'main' guard the reference uses to keep the
  PyPI-publish jobs scoped to the default branch.
- The release job's checkout carried fetch-depth: 0, which is
  unnecessary here: python-semantic-release auto-deepens a shallow
  clone itself before evaluating version history, and the reference
  workflow (which uses the identical checkout-then-git-reset-hard
  pattern) doesn't set it either.

All new SHAs were independently verified against each action's own
commit/tag history (resolving annotated tags to their commit where
needed) before being applied.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix: drop unneeded fetch-depth: 0 from ci.yml checkout

The only place __version__ is set is
src/openedx_authz/__init__.py's plain
`__version__ = version("openedx-authz")` via importlib.metadata -
nothing in the repo parses or splits it, so nothing here needs deep
git history. Sample-plugin's own backend-ci.yml (the Phase 3
reference) doesn't set fetch-depth: 0 either. Same reasoning already
applied on opaque-keys#461 in this same modernization effort.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix: add missing contents:read permission to publish_to_pypi job

Sample-plugin's gold-standard release.yml grants publish_to_pypi both
contents: read and id-token: write. This job's permissions block only
had id-token: write, leaving contents scoped to 'none' (an explicit
permissions: block resets unlisted scopes to none rather than falling
back to the repo default) instead of matching the reference workflow.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix: align importlib.metadata.version aliasing with sample-plugin

__init__.py and docs/conf.py aliased the same import to two different
names (plain `version` vs `get_distribution_version`/`get_installed_version`,
both leftover from the pkg_resources.get_distribution() era). Renamed
both to `get_version`, matching sample-plugin's convention exactly (it
uses `version as get_version` in both files). No behavioral change.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix: remove unnecessary try/except around __version__ (not present pre-migration)

* fix: remove fail-fast: false (not present pre-migration)

* fix: use static 'tests' job name in ci.yml to match pre-migration checks

Pre-migration main already uses name: tests (auto-suffixed by GitHub
with the matrix values, e.g. "tests (ubuntu-latest, 3.12, quality)").
This branch had overridden it to name: ${{ matrix.toxenv }}, which
produces bare check names (quality, docs, pii_check, django52)
instead, leaving any required status checks configured against the
original naming permanently unsatisfied.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix: remove unnecessary try/except around VERSION in docs/conf.py

Not present pre-migration (the old conf.py read __version__ from
openedx_authz/__init__.py via regex, no try/except). Matches
src/openedx_authz/__init__.py, which already calls
get_version("openedx-authz") directly without swallowing
PackageNotFoundError.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix: use secrets.GITHUB_TOKEN instead of custom org secret for release job

Matches openedx/sample-plugin's current release.yml; the custom
OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN secret isn't needed.

* fix: exclude tests packages from wheel

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix: prefix i18n and atlas Makefile targets with uv run

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix: drop uv run from Makefile per feanil's review feedback

Makefile now assumes an already-synced/activated local env; uv run
stays in CI workflow steps only. See openedx-unsupported/ccx-keys#190 (review
comment r4097501942).

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix: add sphinx-jsonschema to doc dependency group

The upstream merge (docs: add authorization schema reference, openedx#431)
added sphinx-jsonschema to the old requirements/doc.in, which was
deleted as part of resolving this branch's merge conflict without
porting the new dependency into pyproject.toml's doc group -- causing
the docs build to fail with "Could not import extension
sphinx-jsonschema".

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Irfan Ahmad <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant