14 lines
301 B
Python
14 lines
301 B
Python
# SPDX-License-Identifier: CC0-1.0 OR Apache-2.0
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
import setuptools
|
|
|
|
|
|
def set_version(dist: setuptools.Distribution) -> None:
|
|
dist.metadata.version = os.environ["SETUPTOOLS_SCM_PRETEND_VERSION"]
|