Repository navigation
Done
Labels
documentationImprovements or additions to documentation
Description
Summary
lfreleng-actions/build-metadata-action reports everything this action reports, and the actions that called this one have moved to it. Add a deprecation notice to README.md that says so and shows how to move. The repository will be archived once the notice has merged.
Line numbers are from d1ad8cc on main.
Background
- The actions that called this one have moved or gone.
python-project-metadata-actionis archived.pypi-publish-actionreads the name frombuild-metadata-actionsince v0.2.5, andpython-audit-actionsince v0.6.5. - A code search on 2026-11-26 finds no other workflow or action in this organisation that calls it.
- The outputs were compared on 2026-11-26, on 21 small projects, against
build-metadata-actionatef8daaaonmain, which holds the fixes that v0.13.5 will release. The mapping and the differences below are what that comparison found. - One more difference the comparison found is a defect in
build-metadata-action: when apyproject.tomlnames no project but holds a[tool.setuptools],[tool.hatch],[tool.pdm]or[tool.poetry]table, it does not read on tosetup.cfgandsetup.py, as this action does. Fix: Correct Python fall-through and provider build-metadata-action#231 fixes that before v0.13.5 is tagged, so the notice does not mention it.
Changes
All in README.md.
- A notice directly under the title (line 6), as a GitHub alert block (
> [!WARNING]). It should say that:- the action is deprecated and gets no further development;
- this repository will be archived, and references to its existing tags and commits keep working after that;
lfreleng-actions/build-metadata-actionreplaces it, with a link to the section below.
- A section,
## Migrating to build-metadata-action, holding:- the replacement step below, in place of the step in
## Usage Example; - the output mapping below;
- the three differences below;
- the release to use: v0.13.5 or later. Earlier releases can take a
setup.pyname from the wrong identifier (Fix: Read setup.py name and version from setup() build-metadata-action#227).
- the replacement step below, in place of the step in
- Two corrections, so that the README the archive keeps is accurate:
- Lines 88–89 say the action also exports its outputs as environment variables. It does not:
action.yamlwrites step outputs alone (lines 1494–1497), and has not written toGITHUB_ENVsinceb10f005(2026-06-24). Remove the sentence. - The
## Inputstable (line 73) names the inputPATH_PREFIX. It ispath_prefix(action.yaml, line 11).
- Lines 88–89 say the action also exports its outputs as environment variables. It does not:
Replacement step
- name: Fetch Python project/package name
id: metadata
uses: lfreleng-actions/build-metadata-action@0000000000000000000000000000000000000000 # REPLACE: vX.Y.Z
with:
project_type: 'python'
use_version_extract: 'false'
include_environment: 'false'
artifact_upload: 'false'
output_format: ''
python_offline_mode: 'true'- Pin by commit SHA with the placeholder, the way the
python-workflowsexamples do, not@main. project_typekeeps apackage.jsonorgo.modbeside the Python files from naming another project.- The other five inputs keep the step as quiet as this action is: no version lookup, no probe of the runner, no uploaded artefact, no job summary and no query for current Python releases. This is the call
pypi-publish-actionandpython-audit-actionmake. - The step sets up Go and builds the action's binary on each run. Say so in a sentence, so that a caller expects it.
- Add
path_prefixwhere the project is not at the repository root.
Output mapping
| This action | build-metadata-action |
|---|---|
python_project_name |
project_name |
python_package_name |
python_package_name |
python_project_file |
python_metadata_source |
source |
python_metadata_source |
Differences
- The package name. This action replaces the dashes in the project name with underscores.
python_package_nameofbuild-metadata-actionis the name as the project declares it:my-cool-pkgstaysmy-cool-pkg. - A project with no name. This action fails.
build-metadata-actionsucceeds and leavesproject_nameempty, so a caller that needs a name has to check for one. - Characters in the name. This action accepts a name only when it holds letters, digits,
.,_and-alone, and otherwise tries the next file or fails.build-metadata-actionreports the name as the project declares it:name = "bad name!"givesbad name!. A caller that relied on that check has to make it itself, and should pass the output to a script throughenv:, never by expanding it inside arun:block.
Out of scope
action.yaml, the workflows and the tests. The action itself does not change: its callers have gone, so a warning at run time would reach nobody.- A release. The change is to the README alone.
- The other Python actions. Whether they are deprecated is for their own repositories to say.
Acceptance criteria
- The README opens, under its title, with the deprecation notice
- The migration section shows the replacement step, maps all four outputs, states the three differences and names v0.13.5
- The sentence on environment variables is gone, and the
## Inputstable namespath_prefix - Only
README.mdchanges, in one commit whose subject is the pull request's title:Docs: Mark the action as deprecated -
prek run --files README.mdpasses
Notes for an automated author
markdownlint,write-goodandcodespellall run on the README. Its tables sit betweenMD013guards; the new table needs the same.- The mapping and the differences above are facts to carry over, not wording to copy. Keep the README's own voice.
- The README describes how the action reads each file (lines 10–54). Leave that description as it is: the tags stay usable, and it documents them.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentation
Activity
lf-releng-code-monkey-bot commentedon Nov 26, 2026
🐒 An AI agent has proposed a change for this issue: pull request #229 (head 4450893). GitHub did not confirm whether the pull request can merge with
main, so its CI may not have run. The Copilot review of it is clean. An antagonistic review was requested from the review bot.