From 959ea06f7f16d6217a320b62782bc23fdc2e81bd Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Mon, 3 Jun 2024 14:30:43 -0700 Subject: [PATCH] Add Support for Python 3.12 (#1237) Resolves #1065 ### Description This adds support for Python 3.12. Once this is merged, the plan is to: * Increment the version of MF and publish it. * Update `dbt-metricflow` to use that new version since CI depends on that package. * Update CI to add tests for Python 3.12. --- .changes/unreleased/Features-20240530-190900.yaml | 6 ++++++ metricflow-semantics/pyproject.toml | 3 ++- pyproject.toml | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Features-20240530-190900.yaml diff --git a/.changes/unreleased/Features-20240530-190900.yaml b/.changes/unreleased/Features-20240530-190900.yaml new file mode 100644 index 0000000000..d1c78790b8 --- /dev/null +++ b/.changes/unreleased/Features-20240530-190900.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Add support for Python 3.12 +time: 2024-05-30T19:09:00.228097-07:00 +custom: + Author: plypaul + Issue: "1065" diff --git a/metricflow-semantics/pyproject.toml b/metricflow-semantics/pyproject.toml index c6883bcbae..59fb7f0468 100644 --- a/metricflow-semantics/pyproject.toml +++ b/metricflow-semantics/pyproject.toml @@ -7,7 +7,7 @@ name = "metricflow-semantics" version = "0.1.0" description = "Modules for semantic understanding of a MetricFlow query." readme = "README.md" -requires-python = ">=3.8,<3.12" +requires-python = ">=3.8,<3.13" license = "BUSL-1.1" authors = [ { name = "dbt Labs", email = "info@dbtlabs.com" }, @@ -20,6 +20,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] diff --git a/pyproject.toml b/pyproject.toml index 414893931e..22c11f3fdf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "metricflow" version = "0.206.0.dev2" 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.8,<3.12" +requires-python = ">=3.8,<3.13" license = "BUSL-1.1" keywords = [] authors = [ @@ -21,6 +21,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ]