blob: 1528bda574c4e50f10e99a46551a4a4d9378a6b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# -*- coding: utf-8 -*-
# Copyright (c) The python-semanticversion project
# This code is distributed under the two-clause BSD License.
from .base import compare, match, validate, SimpleSpec, NpmSpec, Spec, SpecItem, Version
__author__ = "Raphaƫl Barrois <raphael.barrois+semver@polytechnique.org>"
try:
# Python 3.8+
from importlib.metadata import version
__version__ = version("semantic_version")
except ImportError:
import pkg_resources
__version__ = pkg_resources.get_distribution("semantic_version").version
|