Skip to content

Commit 27c6609

Browse files
authored
Drop support for python3.7 (#408)
* Drop support for python37 * Run linter
1 parent b714f44 commit 27c6609

File tree

9 files changed

+8
-20
lines changed

9 files changed

+8
-20
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
strategy:
1414
matrix:
1515
py:
16-
- { version: "3.7", tox: "37" }
1716
- { version: "3.8", tox: "38" }
1817
- { version: "3.9", tox: "39" }
1918
- { version: "3.10", tox: "310" }

opentelemetry-exporter-gcp-logging/setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ classifiers =
1414
License :: OSI Approved :: Apache Software License
1515
Programming Language :: Python
1616
Programming Language :: Python :: 3
17-
Programming Language :: Python :: 3.7
1817
Programming Language :: Python :: 3.8
1918
Programming Language :: Python :: 3.9
2019
Programming Language :: Python :: 3.10
2120
Programming Language :: Python :: 3.11
2221
Programming Language :: Python :: 3.12
2322

2423
[options]
25-
python_requires = >=3.7
24+
python_requires = >=3.8
2625
package_dir=
2726
=src
2827
packages=find_namespace:

opentelemetry-exporter-gcp-monitoring/setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ classifiers =
1414
License :: OSI Approved :: Apache Software License
1515
Programming Language :: Python
1616
Programming Language :: Python :: 3
17-
Programming Language :: Python :: 3.7
1817
Programming Language :: Python :: 3.8
1918
Programming Language :: Python :: 3.9
2019
Programming Language :: Python :: 3.10
@@ -23,7 +22,7 @@ classifiers =
2322
Programming Language :: Python :: 3.13
2423

2524
[options]
26-
python_requires = >=3.7
25+
python_requires = >=3.8
2726
package_dir=
2827
=src
2928
packages=find_namespace:

opentelemetry-exporter-gcp-trace/setup.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ classifiers =
1414
License :: OSI Approved :: Apache Software License
1515
Programming Language :: Python
1616
Programming Language :: Python :: 3
17-
Programming Language :: Python :: 3.7
1817
Programming Language :: Python :: 3.8
1918
Programming Language :: Python :: 3.9
2019
Programming Language :: Python :: 3.10
@@ -23,7 +22,6 @@ classifiers =
2322
Programming Language :: Python :: 3.13
2423

2524
[options]
26-
python_requires = >=3.7
2725
package_dir=
2826
=src
2927
packages=find_namespace:

opentelemetry-propagator-gcp/setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ classifiers =
1414
License :: OSI Approved :: Apache Software License
1515
Programming Language :: Python
1616
Programming Language :: Python :: 3
17-
Programming Language :: Python :: 3.7
1817
Programming Language :: Python :: 3.8
1918
Programming Language :: Python :: 3.9
2019
Programming Language :: Python :: 3.10
@@ -23,7 +22,7 @@ classifiers =
2322
Programming Language :: Python :: 3.13
2423

2524
[options]
26-
python_requires = >=3.7
25+
python_requires = >=3.8
2726
package_dir=
2827
=src
2928
packages=find_namespace:

opentelemetry-resourcedetector-gcp/setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ classifiers =
1414
License :: OSI Approved :: Apache Software License
1515
Programming Language :: Python
1616
Programming Language :: Python :: 3
17-
Programming Language :: Python :: 3.7
1817
Programming Language :: Python :: 3.8
1918
Programming Language :: Python :: 3.9
2019
Programming Language :: Python :: 3.10
@@ -23,7 +22,7 @@ classifiers =
2322
Programming Language :: Python :: 3.13
2423

2524
[options]
26-
python_requires = >=3.7
25+
python_requires = >=3.8
2726
package_dir=
2827
=src
2928
packages=find_namespace:

opentelemetry-resourcedetector-gcp/src/opentelemetry/resourcedetector/gcp_resource_detector/_gke.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414

1515
import os
1616
from dataclasses import dataclass
17+
from typing import Literal
1718

1819
from opentelemetry.resourcedetector.gcp_resource_detector import (
1920
_gce,
2021
_metadata,
2122
)
2223

23-
# TODO: remove when Python 3.7 is dropped
24-
from typing_extensions import Literal
25-
2624
KUBERNETES_SERVICE_HOST_ENV = "KUBERNETES_SERVICE_HOST"
2725

2826

opentelemetry-resourcedetector-gcp/src/opentelemetry/resourcedetector/gcp_resource_detector/_metadata.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414

1515
import logging
1616
from functools import lru_cache
17-
from typing import Union
17+
from typing import TypedDict, Union
1818

1919
import requests
2020

21-
# TODO: remove when Python 3.7 is dropped
22-
from typing_extensions import TypedDict
23-
2421
_GCP_METADATA_URL = "http://metadata.google.internal/computeMetadata/v1/"
2522
_INSTANCE = "instance"
2623
_RECURSIVE_PARAMS = {"recursive": "true"}

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires =
55
tox>=4
66
envlist =
77
; Add the `ci` factor to any env that should be running during CI.
8-
py3{7,8,9,10,11,12,13}-ci-test-{cloudtrace,cloudmonitoring,propagator,resourcedetector, cloudlogging}
8+
py3{8,9,10,11,12,13}-ci-test-{cloudtrace,cloudmonitoring,propagator,resourcedetector, cloudlogging}
99
{lint,mypy}-ci-{cloudtrace,cloudmonitoring,propagator,resourcedetector, cloudlogging}
1010
docs-ci
1111

@@ -60,7 +60,7 @@ setenv =
6060
propagator: PACKAGE_NAME = opentelemetry-propagator-gcp
6161
resourcedetector: PACKAGE_NAME = opentelemetry-resourcedetector-gcp
6262

63-
[testenv:py3{7,8,9,10,11,12,13}-ci-test-{cloudtrace,cloudmonitoring,propagator,resourcedetector, cloudlogging}]
63+
[testenv:py3{8,9,10,11,12,13}-ci-test-{cloudtrace,cloudmonitoring,propagator,resourcedetector, cloudlogging}]
6464
deps =
6565
; editable install the package itself
6666
-e {toxinidir}/{env:PACKAGE_NAME}

0 commit comments

Comments
 (0)