Generic build tool for NeuronSphere compliant projects.
Declaring Build Steps
A NeuronSphere Project declares which HMD CLI commands are required to build it in the ./meta-data/manifest.json file. The package hmd-cli-build installs a general build command, hmd build that handles calling each required command in order. The hmd build command reads the ./meta-data/manifest.json, and attempts to run the HMD tools listed in the build.commands section. The tools listed must be installed separately (most are included in the neuronsphere package).
Example:
{
"name": "example-project",
"build": {
"commands": [["mickey"], ["python"]]
}
}
In the above example, hmd build will first run hmd mickey build and then hmd python build. If a build command errors or fails, the entire build will exit and fail. All subsequent commands listed will not be called. Build commands are run sequentially in the order listed. It is not possible to run commands in parallel.
Build Secrets
The ./meta-data/manifest.json file can also contain a build.secrets section. This section is used to reference secrets that are required by the build commands. The secrets must be stored in the Admin Environment Secrets Manager. Valid types are file and env. The file type will write the secret to a file in /tmp/secrets, and the env type will set the secret as an environment variable.
Example:
{
"name": "example-project",
"build": {
"commands": [["mickey"], ["python"]],
"secrets": [
{
"name": "<aws-secret-name>",
"type": "env",
"env": "API_KEY",
"key": "API_KEY"
},
{
"name": "<aws-secret-name>",
"type": "file",
}
]
}
}
Strict Mode
By default, hmd build runs with HMD_BUILD_STRICT_MODE=true, or in strict mode. While in strict mode, the build will error and fail if one of the listed build commands is not installed. This behavior is desirable on a CI or build server, but not for local development. You can turn off strict mode by setting HMD_BUILD_STRICT_MODE=false. This will be set for you when you run hmd configure after installing the neuronsphere package.
When strict mode is disabled, hmd build will only warn about a missing command and continue on to the next command.
Metadata
Release files for hmd-cli-build 0.1.77
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hmd_cli_build-0.1.77-py3-none-any.whl | Python 3 | none | any | Details |
Release files / hmd_cli_build-0.1.77-py3-none-any.whl
| Download URL | hmd_cli_build-0.1.77-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4f2ff9034b8dfb7318cd105e63a6f40fafc34d36df98065ba0fc2fa2a1f8b5a
|
|
BLAKE2b-256 checksum How to use checksums |
ad216e1a5831dd603feee7ef2afb50ce49176b762211e225002e3644b1cdef47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.14
|
Security for hmd-cli-build 0.1.77
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.