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

require dependency for api/sdk to match major version #1933

Merged
merged 6 commits into from
Jul 12, 2021

Conversation

codeboten
Copy link
Contributor

Description

This changes the dependency for packages to match the major version for API and SDK packages. This allows users more freedom to use packages with various versions, including experimental ones. I've left pinned version for specific packages that I think will still need specific versions. But after this change has been merged and the next version released, I think we should be able to move away from having to release all packages with every release and only release packages for code that has changed.

Fixes #1924

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Does This PR Require a Contrib Repo Change?

  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated

@codeboten codeboten requested review from a team, aabmass and ocelotl and removed request for a team July 6, 2021 15:40
Copy link
Contributor

@owais owais 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 but wondering if we should start with 1.3.0 instead of 1.0.0 given current latest version needed 1.3 anyway.

@ocelotl
Copy link
Contributor

ocelotl commented Jul 8, 2021

Looks good but wondering if we should start with 1.3.0 instead of 1.0.0 given current latest version needed 1.3 anyway.

Agreed, approving still since this fixes the corresponding issue. ✌️

@codeboten
Copy link
Contributor Author

Looks good but wondering if we should start with 1.3.0 instead of 1.0.0 given current latest version needed 1.3 anyway.

@owais Are you suggesting we change the dependency to >= 1.3.0?

#
# Regenerate python code from Jaeger protos in
# https://github.com/jaegertracing/jaeger-idl
#
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this file for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Submitted by accident. It's a script to regenerate jaeger protos. not needed for this PR.

@@ -40,7 +40,7 @@ package_dir=
=src
packages=find_namespace:
install_requires =
opentelemetry-api == 1.4.0.dev0
opentelemetry-api ~= 1.3
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change only for packages upon release? Packages in development will still pin exact versions right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The plan is to unpin packages in development as well. If a dev package needs a new version of the api, then the dependency will need to be updated for that package at that time.

@codeboten codeboten merged commit da16df0 into open-telemetry:main Jul 12, 2021
@codeboten codeboten deleted the codeboten/unpin-api-sdk branch July 12, 2021 14:56
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.

Dependency pinning between packages post 1.0
4 participants