File: hooks.py

package info (click to toggle)
python-hatch-nodejs-version 0.4.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 188 kB
  • sloc: python: 661; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# SPDX-FileCopyrightText: 2022-present Angus Hollands <goosey15@gmail.com>
#
# SPDX-License-Identifier: MIT
from hatchling.plugin import hookimpl

from .metadata_source import NodeJSMetadataHook
from .version_source import NodeJSVersionSource


@hookimpl
def hatch_register_version_source():
    return NodeJSVersionSource


@hookimpl
def hatch_register_metadata_hook():
    return NodeJSMetadataHook