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

Expand google-api-core pin to >1, <3 #473

Closed
wants to merge 1 commit into from

Conversation

busunkim96
Copy link

@busunkim96 busunkim96 commented Jul 28, 2021

To avoid diamond dependency conflicts with Cloud libraries, the Ads library should keep a >1, <3 pin on google-api-core until googleapis/google-cloud-python#10566 is closed.

See discussion in doc.

CC @BenRKarl

To avoid diamond dependency conflicts with Cloud libraries, the Ads library should keep a `>1, <3` pin on google-api-core until googleapis/google-cloud-python#10566 is closed.

See discussion in [doc](https://docs.google.com/document/d/1euAvUsia_4zf98lNvpwA3K0o2b4y5Xr9xAkyzCnIMzQ/edit#).
@busunkim96 busunkim96 requested a review from a team as a code owner July 28, 2021 21:49
@AnashOommen
Copy link
Member

AnashOommen commented Jul 28, 2021 via email

@busunkim96
Copy link
Author

Ah sorry, here's some more context:

google-api-core is planning on officially dropping 2.7 in a new major release (2.0.0).

The particular situation this PR is looking to prevent is one where some customer who uses bothgoogle-ads and a Google Cloud library sees a diamond dependency conflict. As an example, if some recent release of google-ads wants google-api-core>1.x.x, <2.0.0dev and some recent release of google-cloud-bigquery wants google-api-core>2.x.x, <3.0.0dev pip will not be able to find a version of google-api-core that satisfies both and raise an error.

On the Cloud side, we're doing this range expansion before the google-api-core release to increase the amount of time / # of versions published with compatible pins. The hope is that this decreases the likelihood end users of these libraries see dependency conflicts.

If you all would be more comfortable waiting until google-api-core 2.0.0 is released to take this change that is also OK.

@AnashOommen
Copy link
Member

AnashOommen commented Jul 29, 2021 via email

@busunkim96
Copy link
Author

Hi Anash!

One more important note: there are no major bug fixes/ performance changes planned for google-api-core 2.0.0, it is intended to just be a removal of python 2.7. You can review the currently open PR: googleapis/python-api-core#212.

I've also started an email thread to go into details.

@BenRKarl
Copy link
Contributor

Closing this because we're going to submit it via our internal code review process.

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.

None yet

3 participants