Skip to content

chore(community): allow Python 3.14, update deps#1334

Merged
Mason Daugherty (mdrxy) merged 3 commits intomainfrom
mdrxy/bump-community-3-14
Nov 13, 2025
Merged

chore(community): allow Python 3.14, update deps#1334
Mason Daugherty (mdrxy) merged 3 commits intomainfrom
mdrxy/bump-community-3-14

Conversation

@mdrxy
Copy link
Copy Markdown
Member

@mdrxy Mason Daugherty (mdrxy) commented Nov 13, 2025

  • Expand to permit Python 3.14
  • Update dependencies

Temporary Dependency Removal

  • google-cloud-bigquery (from 'bigquery' extra)
  • google-cloud-documentai-toolbox (from 'docai' extra)

Due to upstream compatiblity issues with Python 3.13+

googleapis/google-cloud-python#15815
googleapis/python-documentai-toolbox#389
googleapis/python-bigquery#2316

Potentially breaking

For users who:

  • Install with pip install langchain-google-community[bigquery]
  • Install with pip install langchain-google-community[docai]
  • Import BigQueryLoader or Document AI components directly

Workaround

pip install langchain-google-community
pip install google-cloud-bigquery>=3.21.0
pip install google-cloud-documentai-toolbox>=0.13.3a0  # if Python < 3.13

These dependencies will be restored once upstream fixes are available.


Closes #1319

@mdrxy Mason Daugherty (mdrxy) merged commit 81452db into main Nov 13, 2025
17 checks passed
@mdrxy Mason Daugherty (mdrxy) deleted the mdrxy/bump-community-3-14 branch November 13, 2025 17:05

version = "3.0.0"
requires-python = ">=3.10.0,<3.13.0"
requires-python = ">=3.10.0,<3.14.0"
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.

Mason Daugherty (@mdrxy) this allows 3.13 but not 3.14... was that intentional? we are trying to use 3.14 in one of our projects and would l love to get a new release of the community library out for that. Made a PR for you here

Mason Daugherty (mdrxy) pushed a commit that referenced this pull request Dec 8, 2025
Currently on pip, langchain-google-community only supports Python <3.14.
There was a
[PR](#1334) to add
3.14 support however it looks like it actually updated the project to
support 3.13. This PR corrects that, and also runs the tests on 3.14
also. Disabled Pydantic V1 tests for Python 3.14 as the developers have
[stated they will not support it](https://docs.pydantic.dev/1.10/).

<!--
# Thank you for contributing to LangChain-google!
-->

<!--
## Checklist for PR Creation

- [x] PR Title: "<type>[optional scope]: <description>"

- Where type is one of: feat, fix, docs, style, refactor, perf, test,
build, ci, chore, revert, release
- Scope is used to specifiy the package targeted. Options are: genai,
vertex, community, infra (repo-level)

- [x] PR Description and Relevant issues:

  - Description of the change
  - Relevant issues (if applicable)
  - Any dependencies required for this change

- [x] Add Tests and Docs:

  - If adding a new integration:
1. Include a test for the integration (preferably unit tests that do not
rely on network access)
2. Add an example notebook showing its use (place in the
`docs/docs/integrations` directory)

- [x] Lint and Test:
- Run `make format`, `make lint`, and `make test` from the root of the
package(s) you've modified
- See contribution guidelines for more:
https://github.com/langchain-ai/langchain-google/blob/main/README.md#contribute-code
-->

<!--
## Additional guidelines

- [x] PR title and description are appropriate
- [x] Necessary tests and documentation have been added
- [x] Lint and tests pass successfully
- [x] The following additional guidelines are adhered to:
  - Optional dependencies are imported within functions
- No unnecessary dependencies added to pyproject.toml files (except
those required for unit tests)
  - PR doesn't touch more than one package
  - Changes are backwards compatible
-->

## Description

<!-- e.g. "Implement user authentication feature" -->
Update pyproject.toml for `langchain-google-community` to support Python
3.14. In addition, make the unit tests run on 3.14, and set integration
test to run on 3.14 by default (please tell me if you don't want that, I
will revert).

## Relevant issues

<!-- e.g. "Fixes #000" -->

- Fixes #1319 

## Type

<!-- Select the type of Pull Request -->
<!-- Keep only the necessary ones -->

🆕 New Feature
🐛 Bug Fix



## Changes(optional)

<!-- List of changes -->
- Update pyproject.toml to support Python 3.14
- Make unit tests run on 3.14
- Set integration test default to 3.14
- Disable Pydantic V1 tests for Python 3.14 and above. According to
Pydantic V1 official docs, it will never support > 3.13. See
[here](https://docs.pydantic.dev/1.10/)

## Testing(optional)

<!-- Test procedure -->
<!-- Test result -->

## Note(optional)

<!-- Information about the errors fixed by PR -->
<!-- Remaining issue or something -->
<!-- Other information about PR -->

---------

Co-authored-by: Brett Christensen <brett.christensen@rea-group.com>
Zephyr3311 added a commit to Zephyr3311/Langchain-Google that referenced this pull request Jan 12, 2026
Currently on pip, langchain-google-community only supports Python <3.14.
There was a
[PR](langchain-ai/langchain-google#1334) to add
3.14 support however it looks like it actually updated the project to
support 3.13. This PR corrects that, and also runs the tests on 3.14
also. Disabled Pydantic V1 tests for Python 3.14 as the developers have
[stated they will not support it](https://docs.pydantic.dev/1.10/).

<!--
# Thank you for contributing to LangChain-google!
-->

<!--
## Checklist for PR Creation

- [x] PR Title: "<type>[optional scope]: <description>"

- Where type is one of: feat, fix, docs, style, refactor, perf, test,
build, ci, chore, revert, release
- Scope is used to specifiy the package targeted. Options are: genai,
vertex, community, infra (repo-level)

- [x] PR Description and Relevant issues:

  - Description of the change
  - Relevant issues (if applicable)
  - Any dependencies required for this change

- [x] Add Tests and Docs:

  - If adding a new integration:
1. Include a test for the integration (preferably unit tests that do not
rely on network access)
2. Add an example notebook showing its use (place in the
`docs/docs/integrations` directory)

- [x] Lint and Test:
- Run `make format`, `make lint`, and `make test` from the root of the
package(s) you've modified
- See contribution guidelines for more:
https://github.com/langchain-ai/langchain-google/blob/main/README.md#contribute-code
-->

<!--
## Additional guidelines

- [x] PR title and description are appropriate
- [x] Necessary tests and documentation have been added
- [x] Lint and tests pass successfully
- [x] The following additional guidelines are adhered to:
  - Optional dependencies are imported within functions
- No unnecessary dependencies added to pyproject.toml files (except
those required for unit tests)
  - PR doesn't touch more than one package
  - Changes are backwards compatible
-->

## Description

<!-- e.g. "Implement user authentication feature" -->
Update pyproject.toml for `langchain-google-community` to support Python
3.14. In addition, make the unit tests run on 3.14, and set integration
test to run on 3.14 by default (please tell me if you don't want that, I
will revert).

## Relevant issues

<!-- e.g. "Fixes #000" -->

- Fixes #1319 

## Type

<!-- Select the type of Pull Request -->
<!-- Keep only the necessary ones -->

🆕 New Feature
🐛 Bug Fix



## Changes(optional)

<!-- List of changes -->
- Update pyproject.toml to support Python 3.14
- Make unit tests run on 3.14
- Set integration test default to 3.14
- Disable Pydantic V1 tests for Python 3.14 and above. According to
Pydantic V1 official docs, it will never support > 3.13. See
[here](https://docs.pydantic.dev/1.10/)

## Testing(optional)

<!-- Test procedure -->
<!-- Test result -->

## Note(optional)

<!-- Information about the errors fixed by PR -->
<!-- Remaining issue or something -->
<!-- Other information about PR -->

---------

Co-authored-by: Brett Christensen <brett.christensen@rea-group.com>
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.

Python 3.14 - Increase maximum python version to either 3.13 or 3.14 - langchain_google_community

2 participants