Skip to content

fix: add Python version upper bound to prevent 3.14 compatibility war…#43

Open
SandeepChauhan00 wants to merge 1 commit intoINCF:mainfrom
SandeepChauhan00:fix-python-version-constraint
Open

fix: add Python version upper bound to prevent 3.14 compatibility war…#43
SandeepChauhan00 wants to merge 1 commit intoINCF:mainfrom
SandeepChauhan00:fix-python-version-constraint

Conversation

@SandeepChauhan00
Copy link

@SandeepChauhan00 SandeepChauhan00 commented Jan 29, 2026

##Fixes #42

Summary

Adds an upper bound to the Python version requirement to prevent installation on Python 3.14+, where langchain-core currently emits a Pydantic V1 deprecation warning.

Problem

When users run the project with Python 3.14.0, the following warning appears on every startup:
UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
from pydantic.v1.fields import FieldInfo as FieldInfoV1

The application still works, but the warning is noisy and indicates future incompatibility.

Solution

Updated pyproject.toml:

requires-python = ">=3.12,<3.14"
This prevents accidental installation on Python 3.14+ until dependencies (especially langchain-core) fully support Pydantic V2 / Python 3.14.

Benefits
Eliminates the deprecation warning for all users
Future-proofs the project
Clear signal of supported Python versions

@SandeepChauhan00
Copy link
Author

Hi team! 👋

Following up on this compatibility fix for Python 3.14. This addresses
Issue #42 by adding an upper bound to prevent future breaking changes.

What this does:

  • ✅ Prevents installation on Python 3.14+ (which will deprecate Pydantic v1)
  • ✅ Gives users clear error message instead of cryptic warnings
  • ✅ Buys time for proper Pydantic v2 migration

This is a low-risk defensive measure that prevents future user confusion.
The fix is minimal and ready for review.

Would appreciate your thoughts on this approach. Happy to discuss
alternatives if you have concerns!

Thanks!

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 compatibility: Pydantic V1 deprecation warning

1 participant