Skip to content

Upgrade google-cloud-spanner to >=3.67.0 to fix DeprecationWarning#115

Open
yiyche wants to merge 1 commit into
mainfrom
fix/upgrade-spanner-warning
Open

Upgrade google-cloud-spanner to >=3.67.0 to fix DeprecationWarning#115
yiyche wants to merge 1 commit into
mainfrom
fix/upgrade-spanner-warning

Conversation

@yiyche

@yiyche yiyche commented Jun 11, 2026

Copy link
Copy Markdown
Member

The existing version (3.62.0) throws a DeprecationWarning on Python 3.13:

    self._last_use_time: datetime = datetime.utcnow()```

This came up when trying to write integration test using spanner emulator.

… Python 3.13

The existing version (3.62.0) throws a DeprecationWarning on Python 3.13:
/usr/local/google/home/yiyuanc/datacommons/.venv/lib/python3.13/site-packages/google/cloud/spanner_v1/session.py:83: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    self._last_use_time: datetime = datetime.utcnow()
@yiyche yiyche requested a review from dwnoble June 11, 2026 05:44

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the google-cloud-spanner dependency in packages/datacommons-db/pyproject.toml to require version 3.67.0 or higher, and updates the corresponding lockfile uv.lock to lock google-cloud-spanner at version 3.67.0. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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