Use hatchling and hatch-vcs as build backend

This commit is contained in:
James R. Barlow
2024-08-31 01:08:23 -07:00
parent 6949ad2c5d
commit b9dd0a5e3c
3 changed files with 7 additions and 25 deletions
-16
View File
@@ -1,16 +0,0 @@
# SPDX-FileCopyrightText: 2022 James R. Barlow
# SPDX-License-Identifier: MPL-2.0
"""Get version by introspecting package information.
OCRmyPDF uses setuptools_scm to derive version from git tags.
"""
from __future__ import annotations
from importlib.metadata import version as _package_version
PROGRAM_NAME = 'ocrmypdf'
# Official PEP 396
__version__ = _package_version('ocrmypdf')