From 5017f5cc7945e73db11fb3eb459a5fa69c104e99 Mon Sep 17 00:00:00 2001 From: Jan Hicken Date: Mon, 27 May 2024 12:14:21 +0200 Subject: [PATCH] Loosen OpenTelemetry dependency version constraint (#216) * Loosen OpenTelemetry dependency version constraint When using the datacontract-cli as a library dependency, OpenTelemetry may well be already a dependency of the dependee. The previous dependency constraint allowed only other patch versions of OpenTelemetry to be used. However, other minor versions should also be compatible. As such, the dependency constraints for the OpenTelemetry OTLP exporters have been loosened to allow minor version upgrades. * Add setuptools dependency Soda requires the `distutils` module. As this has been removed with Python 3.12, `setuptools` is required as a drop-in replacement. * Update pyproject.toml --------- Co-authored-by: jochenchrist --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2fbcae52..29f53d31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,8 @@ dependencies = [ "soda-core-snowflake>=3.3.1,<3.4.0", "soda-core-spark[databricks]>=3.3.1,<3.4.0", "soda-core-spark-df>=3.3.1,<3.4.0", + # remove setuptools when https://github.com/sodadata/soda-core/issues/2091 is resolved + "setuptools>=60", "snowflake-connector-python[pandas]>=3.6,<3.11", "duckdb==0.10.2", "fastjsonschema~=2.19.1", @@ -37,8 +39,8 @@ dependencies = [ "s3fs==2024.3.1", "rdflib==7.0.0", "avro==1.11.3", - "opentelemetry-exporter-otlp-proto-grpc~=1.16.0", - "opentelemetry-exporter-otlp-proto-http~=1.16.0", + "opentelemetry-exporter-otlp-proto-grpc~=1.16", + "opentelemetry-exporter-otlp-proto-http~=1.16", "deltalake~=0.17.0", "boto3>=1.34.41,<1.34.99", "botocore>=1.34.41,<1.34.99",