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

opentelemetry-api: Allow importlib_metadata<=8.2 #4089

Merged

Conversation

antonpirker
Copy link
Contributor

@antonpirker antonpirker commented Jul 29, 2024

Description

importlib_metadata had two minor releases in the last month. This PR will remove dependency conflicts for users that have the newest version of importlib_metadata in their dependencies.

I changed the dependencies to allow all minor versions of importlib_metadata until the next major version,
and also update the test-requirements.txt to always install the newest 8.x version of importlib_metadata.

(At sentry we had a good experience with not pinning test requirements. Ok, once in a while someone does a release that breaks our tests, but at least we know right away that something is not working with a new version of a dependency)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Yes, ran those tests and everything is green:

  • tox -e py38-test-opentelemetry-api
  • tox -e py39-test-opentelemetry-api
  • tox -e py310-test-opentelemetry-api
  • tox -e py311-test-opentelemetry-api
  • tox -e py312-test-opentelemetry-api

Does This PR Require a Contrib Repo Change?

Probably not. I am not sure. opentelementry-instrumentation-aiohttp-server and opentelementry-instrumentation-flask use importlib_metadata but there are no dependencies specified in opentelemetry-python-contrib for importlib_metadata.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

opentelemetry-api/pyproject.toml Outdated Show resolved Hide resolved
opentelemetry-api/test-requirements.txt Outdated Show resolved Hide resolved
Co-authored-by: Riccardo Magliocchetti <[email protected]>
@antonpirker antonpirker changed the title opentelemetry-api: Allow importlib_metadata<9 opentelemetry-api: Allow importlib_metadata<=8.2 Jul 29, 2024
@antonpirker antonpirker marked this pull request as ready for review July 29, 2024 15:34
@antonpirker antonpirker requested a review from a team July 29, 2024 15:34
@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jul 29, 2024
@antonpirker
Copy link
Contributor Author

Retested in all Python versions, everything still green.

@lzchen lzchen merged commit 21f4a20 into open-telemetry:main Jul 30, 2024
284 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants