Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

chalmerlowe
Copy link
Collaborator

@chalmerlowe chalmerlowe commented Jan 25, 2023

Prevents the prerelease/compliance installs from using sqlalchemy at >2.0.0 (NOTE: sqlalchemy 2.0.0 has many breaking changes and is not being supported at this time).

  • Removes the nox prerelease install in deference to the autogenerated prerelease_deps install.
  • prevents prerelease testing from installing sqlalchemy > 2.0.0
  • adds a warning suppression environmental variable related to attempts by the code to use syntax that is not found in sqlalchemy 2.0.0
  • corrects an error in how dependency testing is handled (by eliminating the SYSTEM_TEST_EXTRAS collection of test modules (specifically the only package in this collection was being improperly installed)).

@chalmerlowe chalmerlowe requested a review from a team as a code owner January 25, 2023 19:32
@chalmerlowe chalmerlowe requested review from a team and shollyman January 25, 2023 19:32
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. labels Jan 25, 2023
@chalmerlowe chalmerlowe changed the title Avoid sqlalchemy20 fix: Avoid sqlalchemy20 Jan 25, 2023
@product-auto-label product-auto-label bot added size: u Pull request is empty. and removed size: xs Pull request size is extra small. labels Jan 25, 2023
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. and removed size: u Pull request is empty. labels Jan 25, 2023
@product-auto-label product-auto-label bot added size: u Pull request is empty. and removed size: xs Pull request size is extra small. labels Jan 25, 2023
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. and removed size: u Pull request is empty. labels Jan 25, 2023
@product-auto-label product-auto-label bot added size: u Pull request is empty. and removed size: xs Pull request size is extra small. labels Jan 25, 2023
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. and removed size: u Pull request is empty. labels Jan 25, 2023
@chalmerlowe chalmerlowe added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 26, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 26, 2023
@chalmerlowe chalmerlowe added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed owlbot:ignore instruct owl-bot to ignore a PR labels Jan 27, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 27, 2023
@chalmerlowe chalmerlowe added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 27, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 27, 2023
Copy link

@shollyman shollyman left a comment

Choose a reason for hiding this comment

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

LGTM, but I defer to parthea who's far more familiar with the operational aspects here.


session.install("--pre", "grpcio")

session.install("--pre", "--no-deps", "--upgrade", "sqlalchemy<2.0.0")

Choose a reason for hiding this comment

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

the goal with the upgrade + constraint is to pick up the latest of everything but sqlalchemy?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The constraint is to ensure that we install a prerelease version of sqlalchemy up to but not including 2.0.0.

)


s.replace(

Choose a reason for hiding this comment

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

I always worry about brittleness with these kinds of replacements, but alas that's problem for future us.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you and me both.
i really disliked these s.replace() functions as I was writing them.

@chalmerlowe chalmerlowe merged commit 0675b1e into main Jan 30, 2023
@chalmerlowe chalmerlowe deleted the avoid-sqlalchemy20 branch January 30, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants