Skip to main content

Generic build tool.

Project description

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

hmd_cli_build-0.1.56-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page