Skip to content

Commit 755993f

Browse files
committed
Remove Python 3.8 from the project dependencies
- install `typing_extensions` only for Python < 3.11 Signed-off-by: Varsha GS <[email protected]>
1 parent d0b43f1 commit 755993f

File tree

14 files changed

+16
-47
lines changed

14 files changed

+16
-47
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ workflows:
304304
- python3x:
305305
matrix:
306306
parameters:
307-
py-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
307+
py-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
308308
- python314
309309
- py39cassandra
310310
- py39gevent_starlette

.tekton/pipeline.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ spec:
2626
params:
2727
- name: imageDigest
2828
value:
29-
# public.ecr.aws/docker/library/python:3.8.20-bookworm
30-
- "sha256:7aa279fb41dad2962d3c915aa6f6615134baa412ab5aafa9d4384dcaaa0af15d"
3129
# public.ecr.aws/docker/library/python:3.9.22-bookworm
3230
- "sha256:a847112640804ed2d03bb774d46bb1619bd37862fb2b7e48eebe425a168c153b"
3331
# public.ecr.aws/docker/library/python:3.10.17-bookworm

.tekton/python-tracer-prepuller.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ spec:
4949
# public.ecr.aws/bitnami/kafka:3.9.0
5050
image: public.ecr.aws/docker/library/kafka@sha256:d2890d68f96b36da3c8413fa94294f018b2f95d87cf108cbf71eab510572d9be
5151
command: ["sh", "-c", "'true'"]
52-
- name: prepuller-38
53-
# public.ecr.aws/docker/library/python:3.8.20-bookworm
54-
image: public.ecr.aws/docker/library/python@
55-
command: ["sh", "-c", "'true'"]
5652
- name: prepuller-39
5753
# public.ecr.aws/docker/library/python:3.9.22-bookworm
5854
image: public.ecr.aws/docker/library/python@sha256:a847112640804ed2d03bb774d46bb1619bd37862fb2b7e48eebe425a168c153b

bin/aws-lambda/build_and_publish_lambda_layer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@
170170
"--zip-file",
171171
aws_zip_filename,
172172
"--compatible-runtimes",
173-
"python3.8",
174173
"python3.9",
175174
"python3.10",
176175
"python3.11",

example/asyncio/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This directory includes an example asyncio application and client with aiohttp a
44

55
# Requirements
66

7-
* Python 3.8 or greater
7+
* Python 3.9 or greater
88
* instana, aiohttp and aio-pika Python packages installed
99
* A RabbitMQ server with it's location specified in the `RABBITMQ_HOST` environment variable
1010

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dynamic = [
99
]
1010
description = "Python Distributed Tracing & Metrics Sensor for Instana."
1111
readme = "README.md"
12-
requires-python = ">=3.8"
12+
requires-python = ">=3.9"
1313
license = "MIT"
1414
keywords = [
1515
"performance",
@@ -31,7 +31,6 @@ classifiers = [
3131
"License :: OSI Approved :: MIT License",
3232
"Operating System :: OS Independent",
3333
"Programming Language :: Python",
34-
"Programming Language :: Python :: 3.8",
3534
"Programming Language :: Python :: 3.9",
3635
"Programming Language :: Python :: 3.10",
3736
"Programming Language :: Python :: 3.11",
@@ -50,7 +49,7 @@ dependencies = [
5049
"urllib3>=1.26.5",
5150
"opentelemetry-api>=1.27.0",
5251
"opentelemetry-semantic-conventions>=0.48b0",
53-
"typing_extensions>=4.12.2",
52+
"typing_extensions>=4.12.2; python_version < \"3.11\"",
5453
"pyyaml>=6.0.2",
5554
"setuptools>=69.0.0; python_version >= \"3.12\"",
5655
"psutil>=5.9.0; sys_platform == \"win32\"",

src/instana/autoprofile/profiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def start(self, **kwargs: Dict[str, Any]) -> None:
5252
return
5353

5454
try:
55-
if not min_version(3, 8):
56-
raise Exception("Supported Python versions 3.8 or higher.")
55+
if not min_version(3, 9):
56+
raise Exception("Supported Python versions: 3.9 or higher.")
5757

5858
if platform.python_implementation() != "CPython":
5959
raise Exception("Supported Python interpreter is CPython.")

src/instana/instrumentation/pep0249.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
# This is a wrapper for PEP-0249: Python Database API Specification v2.0
55
import wrapt
66
from typing import TYPE_CHECKING, Dict, Any, List, Tuple, Union, Callable, Optional
7-
from typing_extensions import Self
7+
8+
try:
9+
from typing import Self
10+
except ImportError:
11+
from typing_extensions import Self
812

913
from opentelemetry.semconv.trace import SpanAttributes
10-
from opentelemetry.trace import SpanKind
1114

1215
from instana.log import logger
1316
from instana.util.traceutils import get_tracer_tuple, tracing_is_off

tests/apps/aiohttp_app/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
# (c) Copyright Instana Inc. 2020
33

44
import os
5-
import sys
65
from .app import aiohttp_server as server
76
from ..utils import launch_background_thread
87

98
APP_THREAD = None
109

11-
if not any((os.environ.get('GEVENT_STARLETTE_TEST'),
12-
os.environ.get('CASSANDRA_TEST'),
13-
sys.version_info < (3, 5, 3))):
10+
if not any((os.environ.get("GEVENT_STARLETTE_TEST"), os.environ.get("CASSANDRA_TEST"))):
1411
APP_THREAD = launch_background_thread(server, "AIOHTTP")
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# (c) Copyright IBM Corp. 2024
22

33
import os
4-
import sys
54
from tests.apps.aiohttp_app2.app import aiohttp_server as server
65
from tests.apps.utils import launch_background_thread
76

87
APP_THREAD = None
98

10-
if not any((os.environ.get('GEVENT_STARLETTE_TEST'),
11-
os.environ.get('CASSANDRA_TEST'),
12-
sys.version_info < (3, 5, 3))):
9+
if not any((os.environ.get("GEVENT_STARLETTE_TEST"), os.environ.get("CASSANDRA_TEST"))):
1310
APP_THREAD = launch_background_thread(server, "AIOHTTP")

0 commit comments

Comments
 (0)