Skip to content

Commit

Permalink
Support only python 3.11 and 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Pliner committed Sep 7, 2024
1 parent 2ebc77d commit 15d5896
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.11', '3.12']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Setup Python 3.8
uses: actions/setup-python@v3
with:
python-version: '3.8'
python-version: '3.11'
- name: Install dependencies
run:
make deps
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ name = "opentelemetry-instrumentation-asyncpg-listen"
dynamic = ["version"]
description = "OpenTelemetry asyncpg-listen instrumentation"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.8"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "Iurii Pliner", email = "[email protected]" },
]
Expand All @@ -18,10 +18,8 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"opentelemetry-api >= 1.19",
Expand All @@ -32,7 +30,7 @@ dependencies = [

[project.optional-dependencies]
instruments = [
"asyncpg-listen >= 0.0.6, < 0.1.0",
"asyncpg-listen >= 0.0.7, < 0.1.0",
]

[project.entry-points.opentelemetry_instrumentor]
Expand Down
4 changes: 2 additions & 2 deletions src/opentelemetry/instrumentation/asyncpg_listen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import timeit
from typing import Collection, Tuple
from typing import Collection

import asyncpg_listen
import wrapt
Expand All @@ -11,7 +11,7 @@
from .package import _instruments
from .version import __version__

__all__: Tuple[str, ...] = ("AsyncpgListenInstrumentor",)
__all__: tuple[str, ...] = ("AsyncpgListenInstrumentor",)


class AsyncpgListenInstrumentor(BaseInstrumentor):
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_instruments = ("asyncpg_listen>=0.0.6,<0.1.0",)
_instruments = ("asyncpg_listen>=0.0.7,<0.1.0",)

0 comments on commit 15d5896

Please sign in to comment.