From 46829b9ac9ce6d00ad9144aedcbc53060cb4b7bf Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Tue, 17 Jun 2025 16:38:55 +0200 Subject: [PATCH] fix: add setuptools as dependency for Python >= 3.12 The `autowrapt` has a cross in-code dependency on `setuptools` which are not solved by the authors. This fix adds the package `setuptools` as dependency for environments running Python >= 3.12 to prevent issues when instrumenting with the `AUTOWRAPT_BOOTSTRAP` variable. Co-authored-by: Varsha GS Signed-off-by: Paulo Vital --- .circleci/config.yml | 2 +- pyproject.toml | 1 + tests/requirements-minimal.txt | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2bcb7eaa..57495e70 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -313,7 +313,7 @@ workflows: - autowrapt: matrix: parameters: - py-version: ["3.12", "3.13"] + py-version: ["3.11", "3.12", "3.13"] - final_job: requires: - python3x diff --git a/pyproject.toml b/pyproject.toml index 1f12cb6e..8dea7000 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,7 @@ dependencies = [ "opentelemetry-api>=1.27.0", "opentelemetry-semantic-conventions>=0.48b0", "typing_extensions>=4.12.2", + "setuptools>=69.0.0; python_version >= \"3.12\"", ] [project.entry-points."instana"] diff --git a/tests/requirements-minimal.txt b/tests/requirements-minimal.txt index a325691b..464adb34 100644 --- a/tests/requirements-minimal.txt +++ b/tests/requirements-minimal.txt @@ -1,3 +1,2 @@ coverage>=5.5 pytest>=4.6 -setuptools