Skip to content

deps(test): relax dependency constraints to run on Python 3.13 #9209

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

skshetry
Copy link

The dependency versions are quite conservatively constrained (which is usually not seen in Python ecosystem) and many are outdated that they cannot be installed in Python 3.13 due to lack of wheels.

To get things working on Python 3.13, I've only made minimal changes to a few packages:

  1. pandas (>=2.2.3 is needed for 3.13 support)
  2. pyarrow (>=18.0 is needed for 3.13 support)
  3. pillow (>=11 is needed for 3.13 support)

I also updated typing-extensions, which was quite old. The reason for this is that recent versions of pydantic require typing-extensions>=4.13. Without that, uv or pip installs an older version of pydantic that doesn’t have wheels available for Python 3.13.

The dependency versions in the `requirements.txt` are very conservatively constrained
(which is not usually seen in Python ecosystem) and are quite old that they cannot be
installed in Python 3.13 due to lack of wheels.
@CLAassistant
Copy link

CLAassistant commented Jun 20, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bug: Python 3.13 Compatibility Issue

The dependency constraints for pandas, pyarrow, and pillow are too lenient, allowing versions (pandas >=2.1.4, pyarrow >=14.0.1, pillow >=10.3.0) that lack Python 3.13 support. This contradicts the PR description, which specifies higher minimums (pandas >=2.2.3, pyarrow >=18.0, pillow >=11) for Python 3.13 compatibility, potentially causing installation or runtime failures on Python 3.13.

clients/python-wrapper/setup.py#L23-L26

"pytest-datafiles ~= 3.0.0",
"pandas >= 2.1.4,<3",
"pyarrow >= 14.0.1,<20",
"pillow >= 10.3.0,<12"

clients/python-wrapper/requirements.txt#L11-L14

pytest-datafiles~=3.0.0
pandas>=2.1.4,<3
pyarrow>=14.0.1,<20
pillow>=10.3.0,<12

Fix in Cursor


Bug: Dependency Conflict Affects Python 3.13 Compatibility

The typing_extensions dependency constraint (>=4.8.0,<5) allows versions incompatible with recent pydantic requirements (>=4.13), potentially causing compatibility issues, particularly on Python 3.13.

clients/python-wrapper/requirements.txt#L5-L6

six~=1.16.0
typing_extensions>=4.8.0,<5

Fix in Cursor


Was this report helpful? Give feedback by reacting with 👍 or 👎

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