From 7ccfae5eb433540fb0dae568bb2726f57325039d Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Fri, 12 Sep 2025 08:15:44 -0600 Subject: [PATCH 1/2] fix(deps): pin setuptools to <81.0.0 to avoid pkg_resources deprecation warning Fix the following error: /opt/instana/instrumentation/python/3.9.0/wrapt/importer.py:94: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. Signed-off-by: Paulo Vital --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bcd86863..f563cdb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ dependencies = [ "opentelemetry-semantic-conventions>=0.48b0", "typing_extensions>=4.12.2", "pyyaml>=6.0.2", - "setuptools>=69.0.0; python_version >= \"3.12\"", + "setuptools>=69.0.0,<81.0.0; python_version >= \"3.12\"", "psutil>=5.9.0; sys_platform == \"win32\"", ] From 3c1c626c44a3f35e75484f0390ccfbac0a7ae232 Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Fri, 12 Sep 2025 08:28:35 -0600 Subject: [PATCH 2/2] ci: Add pyproject.toml to the list of modified files to test. Signed-off-by: Paulo Vital --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5fef25d9..74f53f87 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,7 +19,7 @@ commands: CHANGED_FILES=$(git diff --name-only origin/main...HEAD) # Check if any relevant files changed - echo "$CHANGED_FILES" | grep -q -E "^(src/|tests/|tests_aws/|.circleci/)" || { + echo "$CHANGED_FILES" | grep -q -E "^(src/|tests/|tests_aws/|.circleci/|pypproject.toml)" || { echo "No changes in src/, tests/, tests_aws/, or .circleci directories. Skipping tests." circleci step halt }