Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pkg resources #2871

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
804d175
feat: replace pkg_resource for importlib
Rodrigo-Novas Feb 14, 2024
e00d699
chore: add entry on changelog
Rodrigo-Novas Feb 14, 2024
c6effca
feat: update to 132
Rodrigo-Novas Feb 14, 2024
4bbd2d5
feat: add dist logic and version conflict
Rodrigo-Novas Feb 16, 2024
199e687
feat: add requirements solution
Rodrigo-Novas Feb 20, 2024
e37a1ea
feat: update version importlib
Rodrigo-Novas Feb 26, 2024
333ee6b
refactor: add Union to collection type
Rodrigo-Novas Aug 27, 2024
681ffcc
refactor: add value and group on tests
Rodrigo-Novas Aug 27, 2024
609a9c0
feat: execute tox
Rodrigo-Novas Aug 27, 2024
d1d2bb5
chore: change to unreleased side
Rodrigo-Novas Aug 30, 2024
57fc3b7
chore: change issue number
Rodrigo-Novas Aug 30, 2024
2213c1e
Update core SHA in tox.ini
ocelotl Sep 4, 2024
9c7519c
wop
ocelotl Sep 4, 2024
ca037f4
Update core repo sha again
ocelotl Sep 5, 2024
ebfaf17
Use opentelemertry importlib metadata
ocelotl Sep 5, 2024
9229c6e
Remove importlib-metadata from test requirements
ocelotl Sep 5, 2024
7117c29
Remove importlib-metadata dependency
ocelotl Sep 5, 2024
f62f35d
Back to main core repo
xrmx Sep 13, 2024
95954bb
opentelemetry-distro: stop using pkg_resources
xrmx Sep 13, 2024
86a8456
opentelemetry-instrumentation-wsgi: try stop using pkg_resources
xrmx Sep 13, 2024
79120e7
opentelemetry-instrumentation-fastapi: stop using pkg_resources
xrmx Sep 13, 2024
b593563
opentelemetry-instrumentation-aiohttp-client: stop using pkg_resources
xrmx Sep 13, 2024
ddc339c
opentelemetry-instrumentation: fix some tests
xrmx Sep 13, 2024
e63dc42
opentelemetry-instrumentation: fix formatting
xrmx Sep 13, 2024
99c7bf2
opentelemetry-instrumentation-flask: fix formatting
xrmx Sep 13, 2024
d2f2369
opentelemetry-instrumentation: fix another test
xrmx Sep 13, 2024
6c9ec8b
fix flask
xrmx Sep 13, 2024
24f307f
apply Arnatious cleanup for entry points dist cache
xrmx Sep 13, 2024
638fba6
Fix previous commit
xrmx Sep 13, 2024
744bb25
Fixup last commit
xrmx Sep 13, 2024
226d02b
Update fastapi tests
jeremydvoss Sep 20, 2024
e2db128
Please pylint
xrmx Sep 20, 2024
4a8055f
Add some basic tests for the cache and some coverage for loading with…
xrmx Oct 17, 2024
d2d48a7
YOLO
xrmx Oct 17, 2024
c269629
please pylint
xrmx Oct 17, 2024
049ee35
instrumentation/opentelemetry-instrumentation-test: drop importlib me…
xrmx Oct 17, 2024
a1a7652
Cover more cases in entry point dist cache test
xrmx Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `opentelemetry-instrumentation-aiokafka` Wrap `AIOKafkaConsumer.getone()` instead of `AIOKafkaConsumer.__anext__`
([#2874](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2874))

### Breaking changes

- Deprecation of pkg_resource in favor of importlib.metadata
([#2181](https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2181))

## Version 1.27.0/0.48b0 (2024-08-28)

### Added

- `opentelemetry-instrumentation-kafka-python` Instrument temporary fork, kafka-python-ng
inside kafka-python's instrumentation
- `opentelemetry-instrumentation-kafka-python` Instrument temporary fork, kafka-python-ng inside kafka-python's instrumentation
([#2537](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2537))
- `opentelemetry-instrumentation-asgi`, `opentelemetry-instrumentation-fastapi` Add ability to disable internal HTTP send and receive spans
([#2802](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2802))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ cramjam==2.1.0; platform_python_implementation == "PyPy"
cramjam==2.8.1; platform_python_implementation != "PyPy"
Deprecated==1.2.14
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
asgiref==3.8.1
Deprecated==1.2.14
flaky==3.7.0
importlib-metadata==6.11.0
iniconfig==2.0.0
markdown-it-py==3.0.0
mdurl==0.1.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ aiormq==6.2.3
asgiref==3.8.1
Deprecated==1.2.14
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
multidict==6.0.5
packaging==24.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ aiormq==6.6.4
asgiref==3.8.1
Deprecated==1.2.14
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
multidict==6.0.5
packaging==24.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ aiormq==6.7.1
asgiref==3.8.1
Deprecated==1.2.14
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
multidict==6.0.5
packaging==24.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ aiormq==6.8.0
asgiref==3.8.1
Deprecated==1.2.14
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
multidict==6.0.5
packaging==24.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Flask==3.0.2
frozenlist==1.4.1
http_server_mock==1.7
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
itsdangerous==2.1.2
Jinja2==3.1.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import aiohttp.test_utils
import yarl
from http_server_mock import HttpServerMock
from pkg_resources import iter_entry_points

from opentelemetry import trace as trace_api
from opentelemetry.instrumentation import aiohttp_client
Expand All @@ -47,6 +46,7 @@
from opentelemetry.semconv.trace import SpanAttributes
from opentelemetry.test.test_base import TestBase
from opentelemetry.trace import Span, StatusCode
from opentelemetry.util._importlib_metadata import entry_points


def run_with_test_server(
Expand Down Expand Up @@ -886,9 +886,9 @@ def response_hook(

class TestLoadingAioHttpInstrumentor(unittest.TestCase):
def test_loading_instrumentor(self):
entry_points = iter_entry_points(
"opentelemetry_instrumentor", "aiohttp-client"
(entry_point,) = entry_points(
group="opentelemetry_instrumentor", name="aiohttp-client"
)

instrumentor = next(entry_points).load()()
instrumentor = entry_point.load()()
self.assertIsInstance(instrumentor, AioHttpClientInstrumentor)
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ async-timeout==4.0.3
Deprecated==1.2.14
frozenlist==1.4.1
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
multidict==6.0.5
packaging==24.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ aiopg==1.4.0
asgiref==3.8.1
async-timeout==4.0.3
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
asgiref==3.8.1
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
asgiref==3.8.1
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ asgiref==3.8.1
async-timeout==4.0.3
asyncpg==0.29.0
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
asgiref==3.8.1
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ cryptography==43.0.1
Deprecated==1.2.14
docker==7.0.0
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
Jinja2==3.1.4
jmespath==1.0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ asgiref==3.8.1
boto3==1.34.44
botocore==1.34.44
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
jmespath==1.0.1
packaging==24.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ cryptography==43.0.1
Deprecated==1.2.14
docker==7.0.0
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
Jinja2==3.1.4
jmespath==1.0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pyasyncore==1.0.4 # for python 3.13 (should removed when cassandra-driver repla
click==8.1.7
Deprecated==1.2.14
geomet==0.2.1.post1
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.3.0
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
kombu==5.3.5
packaging==24.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.3.0
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
kombu==5.3.5
packaging==24.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
asgiref==3.8.1
confluent-kafka==2.4.0
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
asgiref==3.8.1
Deprecated==1.2.14
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
asgiref==3.8.1
Deprecated==1.2.14
Django==2.2.28
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
asgiref==3.8.1
Deprecated==1.2.14
Django==3.2.25
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ asgiref==3.8.1
backports.zoneinfo==0.2.1
Deprecated==1.2.14
Django==4.2.15
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
asgiref==3.8.1
Deprecated==1.2.14
Django==4.2.15
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ asgiref==3.8.1
Deprecated==1.2.14
elasticsearch==6.8.2
elasticsearch-dsl==6.4.0
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ asgiref==3.8.1
Deprecated==1.2.14
elasticsearch==7.17.9
elasticsearch-dsl==7.4.1
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Deprecated==1.2.14
elasticsearch==8.13.1
elasticsearch-dsl==8.13.1
elastic-transport==8.13.0
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
asgiref==3.8.1
Deprecated==1.2.14
falcon==1.4.1
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
asgiref==3.8.1
Deprecated==1.2.14
falcon==2.0.0
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
asgiref==3.8.1
Deprecated==1.2.14
falcon==3.1.1
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ h11==0.14.0
httpcore==1.0.4
httpx==0.27.0
idna==3.7
importlib-metadata==6.11.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
Expand Down
Loading