Skip to content

Relax datadog version requirement #231

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

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

alindeman
Copy link
Contributor

What does this PR do?

The use of the caret requirement with a pre-1.0 package is effectively locking the datadog package to a single version.

This PR proposes allowing more recent versions of the datadog package (e.g., 0.42.0, 0.43.0, etc).

Motivation

I am trying to use this package in tandem with a different package that requires datadog >= 0.42.0. But this package has effectively locked datadog to 0.41.0 so they are currently not compatible.

Testing Guidelines

Changes are only to package requirements.

Additional Notes

Let me know if there are better ways to tackle this issue.

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

Because the datadog package version is 0.x.y, `^0.41.0` is equivalent to
`>= 0.41.0 <0.42.0` [1].

This currently locks the version to `0.41.y`.

Newer versions of `datadog` have been released with minor changes
(currently 0.44.0), but depending on this project prevents pulling them
in.

[1]: https://python-poetry.org/docs/dependency-specification/
@alindeman alindeman requested a review from a team as a code owner June 22, 2022 21:50
@@ -24,7 +24,7 @@ classifiers = [

[tool.poetry.dependencies]
python = ">=3.6.0,<4"
datadog = "^0.41.0"
datadog = "^0.41"
wrapt = "^1.11.2"
ddtrace = "^0.61.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this change is considered acceptable, we may also want to make a similar change for ddtrace which is also effectively locked to 0.61.y (y >= 1). I'd be happy to make that change if requested.

Copy link
Contributor

@astuyve astuyve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks, feel free to raise a similar PR in dd-trace-py

@astuyve astuyve merged commit a76b0c4 into DataDog:main Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants