Hatch plugin for versioning from a package.json file
Low maintenance activity. Last release 16 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install hatch-nodejs-versionhatch-nodejs-version
This package provides two Hatch plugins:
- version source plugin that reads/writes the package version
from the
versionfield of the Node.jspackage.jsonfile. - metadata hook plugin that reads PEP 621 metadata from the
Node.js
package.jsonfile.
Table of Contents
Global dependency
Ensure hatch-nodejs-version is defined within the build-system.requires field in your pyproject.toml file.
[build-system]
requires = ["hatchling", "hatch-nodejs-version"]
build-backend = "hatchling.build"
Version source
The version source plugin name is nodejs.
-
pyproject.toml
[tool.hatch.version] source = "nodejs" -
hatch.toml
[version] source = "nodejs"
Semver
The semver specification defines the following version sections:
majorminor