livery.extensions.nanobind._stamp¶
livery.extensions.nanobind._stamp ¶
Stamp a nanobind package's release: its version, and its floors in both manifests.
The stamp phase's step for a package whose set holds nanobind. The
package carries two manifests: python's pyproject.toml, which
declares the version, and conan's recipe, which names the requirements
its extension module builds against and no version. One step of a
package reports the files the phase changed, so nanobind's declaration
deletes python's and conan's stamp steps in the same set, and this
step does the work of both through their entry modules. The recipe is
the one file it writes beyond python's, so nanobind names it among the
files the stamp phase writes (version_files): the release keeps it
and restores it, and the local act refuses while it has changes of its
own.
Functions:
| Name | Description |
|---|---|
version_files |
The recipe, the file the stamp writes beyond python's; empty with none. |
stamp |
Write the engine's version and raise its floors, in the pyproject and the recipe. |
Attributes:
| Name | Type | Description |
|---|---|---|
RECIPE_FILE |
|
version_files ¶
The recipe, the file the stamp writes beyond python's; empty with none.
nanobind's answer to the version-files query. python answers
with pyproject.toml and the modules, and conan answers no file
for a recipe that names no version, so without this answer the
recipe the stamp raises floors in would be among no file the
release keeps.
Source code in packages/extensions/nanobind/src/livery/extensions/nanobind/_stamp.py
stamp ¶
stamp(ctx: PhaseContext) -> None
Write the engine's version and raise its floors, in the pyproject and the recipe.
python writes the version into pyproject.toml and every
__version__ and raises the pyproject's floors
(livery.extensions.python.stamp); conan raises the recipe's
(livery.extensions.conan.raise_floors). Each floor is one of the
engine's, a member released with this one.