experimental/cuda-ubi9/: hatch-nodejs-version-0.3.2 metadata and description

Simple index

Hatch plugin for versioning from a package.json file

author_email Angus Hollands <goosey15@gmail.com>
classifiers
  • Framework :: Hatch
  • Programming Language :: Python :: 3.7
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
description_content_type text/markdown
license MIT
project_urls
  • Homepage, https://github.com/agoose77/hatch-nodejs-version
  • Issue Tracker, https://github.com/agoose77/hatch-nodejs-version/issues
  • Source Code, https://github.com/agoose77/hatch-nodejs-version
requires_dist
  • hatchling>=0.21.0
requires_python >=3.7
File Tox results History
hatch_nodejs_version-0.3.2-py3-none-any.whl
Size
8 KB
Type
Python Wheel
Python
3

hatch-nodejs-version

PyPI - Version PyPI - Python Version Hatch project


This package provides two Hatch plugins:

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.

Semver

The semver specification defines the following version sections:

Meanwhile, PEP 440 defines:

In order to ensure contentful round-trip support, and ensure semantic consistency between Node.js and Python, this plugin only accepts the common version parts:

e.g. 1.2.3-rc0.

Note that where normalisation occurs, the round-trip result will differ. This can be avoided by careful choice of the delimeters e.g. -..

Version source options

Option Type Default Description
path str package.json Relative path to the package.json file.

Metadata hook

The metadata hook plugin name is nodejs.

Metadata hook options

Option Type Default Description
path str "package.json" Relative path to the package.json file.
fields list of str None Optional list of pyproject.toml fields to take from their counterparts in package.json. If missing, take all of the available fields.
contributors-as-maintainers bool True Whether contributors in package.json should be considered maintainers (otherwise, treat them as authors).
bugs-label str "Bug Tracker" The key in the URLs table of pyproject.toml that is populated by the bugs field in package.json
homepage-label str "Homepage" The key in the URLs table of pyproject.toml that is populated by the homepage field in package.json
repository-label str "Repository" The key in the URLs table of pyproject.toml that is populated by the repository field in package.json

License

hatch-nodejs-version is distributed under the terms of the MIT license.