From 50c4bc31d26a7875373fb877124341c9ed0a5dce Mon Sep 17 00:00:00 2001 From: Iurii Pliner Date: Sun, 8 Sep 2024 00:04:10 +0100 Subject: [PATCH] Support only python 3.11 and 3.12 (#2) * Support only python 3.11 and 3.12 * Add to changelog --- .github/workflows/ci.yml | 4 ++-- CHANGELOG.md | 5 +++++ pyproject.toml | 10 ++++------ .../instrumentation/asyncpg_listen/__init__.py | 4 ++-- .../instrumentation/asyncpg_listen/package.py | 2 +- 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0041b97..90fb3e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ea5061..bc605fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## unreleased + +* [Support python 3.12, drop 3.9 and 3.10](https://github.com/anna-money/opentelemetry-instrumentation-asyncpg-listen/pull/2) + + ## v0.0.1 (2024-09-07) * A first version diff --git a/pyproject.toml b/pyproject.toml index 744af62..fc805de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "yury.pliner@gmail.com" }, ] @@ -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", @@ -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] diff --git a/src/opentelemetry/instrumentation/asyncpg_listen/__init__.py b/src/opentelemetry/instrumentation/asyncpg_listen/__init__.py index 34d76e4..72fc6ec 100644 --- a/src/opentelemetry/instrumentation/asyncpg_listen/__init__.py +++ b/src/opentelemetry/instrumentation/asyncpg_listen/__init__.py @@ -1,5 +1,5 @@ import timeit -from typing import Collection, Tuple +from typing import Collection import asyncpg_listen import wrapt @@ -11,7 +11,7 @@ from .package import _instruments from .version import __version__ -__all__: Tuple[str, ...] = ("AsyncpgListenInstrumentor",) +__all__: tuple[str, ...] = ("AsyncpgListenInstrumentor",) class AsyncpgListenInstrumentor(BaseInstrumentor): diff --git a/src/opentelemetry/instrumentation/asyncpg_listen/package.py b/src/opentelemetry/instrumentation/asyncpg_listen/package.py index 5eaf436..413782c 100644 --- a/src/opentelemetry/instrumentation/asyncpg_listen/package.py +++ b/src/opentelemetry/instrumentation/asyncpg_listen/package.py @@ -1 +1 @@ -_instruments = ("asyncpg_listen>=0.0.6,<0.1.0",) +_instruments = ("asyncpg_listen>=0.0.7,<0.1.0",)