From f861c49ce3dc963021cdaad4c96bdccf2ead6d8d Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Wed, 15 Jan 2025 15:30:45 -0800 Subject: [PATCH] /* PR_START p--release-setup 01 */ Update `pyproject.toml` files to use a dynamic version configuration. --- dbt-metricflow/dbt_metricflow/__about__.py | 3 +++ dbt-metricflow/pyproject.toml | 6 ++++-- metricflow/__about__.py | 3 +++ pyproject.toml | 6 ++++-- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 dbt-metricflow/dbt_metricflow/__about__.py create mode 100644 metricflow/__about__.py diff --git a/dbt-metricflow/dbt_metricflow/__about__.py b/dbt-metricflow/dbt_metricflow/__about__.py new file mode 100644 index 0000000000..dd2d37b852 --- /dev/null +++ b/dbt-metricflow/dbt_metricflow/__about__.py @@ -0,0 +1,3 @@ +from __future__ import annotations + +__version__ = "0.7.0" diff --git a/dbt-metricflow/pyproject.toml b/dbt-metricflow/pyproject.toml index 6782e76960..14396a322a 100644 --- a/dbt-metricflow/pyproject.toml +++ b/dbt-metricflow/pyproject.toml @@ -4,7 +4,6 @@ build-backend = "hatchling.build" [project] name = "dbt-metricflow" -version = "0.7.0" description = "Execute commands against the MetricFlow semantic layer with dbt." readme = "README.md" requires-python = ">=3.8,<3.13" @@ -26,7 +25,10 @@ classifiers = [ ] # Dependencies are specified through the `hatch-requirements-txt` plug-in. -dynamic = ["dependencies", "optional-dependencies"] +dynamic = ["version", "dependencies", "optional-dependencies"] + +[tool.hatch.version] +path = "dbt_metricflow/__about__.py" [tool.hatch.metadata.hooks.requirements_txt] files = [ diff --git a/metricflow/__about__.py b/metricflow/__about__.py new file mode 100644 index 0000000000..24e635eb0f --- /dev/null +++ b/metricflow/__about__.py @@ -0,0 +1,3 @@ +from __future__ import annotations + +__version__ = "0.207.0.dev2" diff --git a/pyproject.toml b/pyproject.toml index d1a9f18bdd..6f7273633d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,6 @@ build-backend = "hatchling.build" [project] name = "metricflow" -version = "0.207.0" description = "Translates a simple metric definition into reusable SQL and executes it against the SQL engine of your choice." readme = "README.md" requires-python = ">=3.9,<3.13" @@ -26,7 +25,10 @@ classifiers = [ ] # Dependencies are specified through the `hatch-requirements-txt` plug-in. -dynamic = ["dependencies", "optional-dependencies"] +dynamic = ["version", "dependencies", "optional-dependencies"] + +[tool.hatch.version] +path = "metricflow/__about__.py" [tool.hatch.metadata.hooks.requirements_txt] files = [