Skip to main content

Hatch plugin for building Apache NiFi NAR bundles

Project description

hatch-datavolo-nar

This project provides a Builder plugin for the Hatch Python project manager that enables building packaged archives for Apache NiFi. The NAR format uses the ZIP file structure, containing a manifest and NiFi components with dependencies.

pypi python-versions build license Hatch Ruff Mypy

Integrating

This project requires the Hatch project manager for Python with a working pyproject.toml configuration.

Build System

The hatch-datavolo-nar library must be added to the build-system.requires field in a pyproject.toml configuration for Hatch to load the plugin.

[build-system]
requires = ["hatchling", "hatch-datavolo-nar"]
build-backend = "hatchling.build"

Build Packages

The hatch-datavolo-nar plugin reads the Hatch build configuration to select files for packaging.

The nar build target should be configured with a packages field that identifies the directory containing Python files to be included.

The following configuration section provides an example for a project containing a processors package using the src layout for directory organization:

[tool.hatch.build.targets.nar]
packages = ["src/processors"]

Build Command

The hatch-datavolo-nar plugin provides the nar build target, which can be invoked using the Hatch build command.

hatch build -t nar

Developing

Run the following Hatch command to build the project:

hatch build

The Python wheel can be referenced using a file URI in a project build system.

[build-system]
requires = ["hatchling", "hatch-datavolo-nar@file:///dist/hatch_datavolo_nar-0.1.0-py3-none-any.whl"]
build-backend = "hatchling.build"

Coding Conventions

This project uses the following tools to evaluate adherence to coding conventions:

Versioning

This project follows the Semantic Versioning Specification 2.0.0.

Licensing

This project is distributed under the terms of the Apache License 2.0.

Project details


Download files

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

Source Distribution

hatch_datavolo_nar-0.1.1.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

hatch_datavolo_nar-0.1.1-py3-none-any.whl (13.6 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