Skip to content

Commit

Permalink
Bumped the version and added loading version from pyproject.toml (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanmok authored Nov 5, 2024
1 parent b003c5b commit eecc1d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "metametric"
version = "0.2.0"
version = "0.2.1"
description = "A Unified View of Evaluation Metrics for Structured Prediction"
authors = [
{name = "Tongfei Chen", email = "tongfei@pm.me"},
Expand Down
12 changes: 8 additions & 4 deletions src/metametric/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
"""The core functionality of metametric package."""

__version__ = "0.2.0"
import importlib.metadata


__version__ = importlib.metadata.version(__package__ or __name__)


from metametric.core.metric import Metric, Variable # noqa: F401
from metametric.core.reduction import Reduction # noqa: F401
from metametric.core.metric_suite import MetricSuite, MetricFamily # noqa: F401
from metametric.core.constraint import MatchingConstraint # noqa: F401
from metametric.core.metric import Metric, Variable # noqa: F401
from metametric.core.metric_suite import MetricFamily, MetricSuite # noqa: F401
from metametric.core.path import Path # noqa: F401
from metametric.core.reduction import Reduction # noqa: F401
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eecc1d2

Please sign in to comment.