livery.extensions.python._verify¶
livery.extensions.python._verify ¶
The verify phase's python half: a released version installed alone and tested.
The verification checks the pairing a consumer gets: the distribution the index serves, installed into a plain virtual environment beside the tests recorded for that same version, the package imported from site-packages and never from the workspace.
Functions:
| Name | Description |
|---|---|
verify |
Install package's released version alone, then run its tests at tree. |
import_name |
The module package's wheel ships, which the tests import from site-packages. |
install |
Create the plain environment and install requirement into it; the exit code. |
run_tests |
Prove the import comes from site-packages, then run the member's tests. |
verify ¶
Install package's released version alone, then run its tests at tree.
The plain environment sits beside tree, which is checked out at the release's receipt tag. A red install runs no test.
Returns:
| Type | Description |
|---|---|
int
|
The exit code: the install's when it is red, the tests' otherwise. |
Source code in packages/extensions/python/src/livery/extensions/python/_verify.py
import_name ¶
The module package's wheel ships, which the tests import from site-packages.
The first of the package's python module roots
(livery.extensions.python._backend.module_roots): the build
backend's module-name where the manifest declares one, which
names a module under a namespace too.
Raises:
| Type | Description |
|---|---|
Failed
|
when package ships no module, naming its |
Source code in packages/extensions/python/src/livery/extensions/python/_verify.py
install ¶
Create the plain environment and install requirement into it; the exit code.
uv makes the environment and installs, but the environment is
a plain one outside the workspace: no lock, no editable members,
so the package can only come from the index.
Source code in packages/extensions/python/src/livery/extensions/python/_verify.py
run_tests ¶
Prove the import comes from site-packages, then run the member's tests.